discontinuedPackage flutter_gemma has been discontinued and replaced by flutter_edge_ai.

createModel abstract method

Future<SpeechRecognizer> createModel(
  1. SttModelSpec spec,
  2. RuntimeConfig config
)

Build a runtime SpeechRecognizer for spec + config.

Implementation

Future<SpeechRecognizer> createModel(SttModelSpec spec, RuntimeConfig config);