VoskFlutterPlugin class
Provides access to the Vosk speech recognition API.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createModel(
String modelPath) → Future< Model> -
Create a model from model data located at the
modelPath. See ModelLoader -
createRecognizer(
{required Model model, required int sampleRate, List< String> ? grammar}) → Future<Recognizer> -
Create a recognizer that will use the specified
modelto process speech.sampleRatedetermines the sample rate of the audio fed to the recognizer(a mismatch in the sample rate causes accuracy problems). -
createSpeakerModel(
String modelPath) → Future< SpeakerModel> -
Create a spaker model from model data located at the
modelPath. See ModelLoader -
initSpeechService(
Recognizer recognizer) → Future< SpeechService> -
Init a speech service that will use the provided
recognizerto process audio input from the device microphone. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setSpeakerModel(
int recognizerId, SpeakerModel speakerModel) → Future< void> - Set speaker model for the recognizer
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
instance(
) → VoskFlutterPlugin - Get plugin instance.