SpeechService class

Speech recognition service used to process audio input from the device's microphone.

Constructors

SpeechService(MethodChannel _channel)
Use VoskFlutterPlugin.initSpeechService to create an instance of SpeechService.

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

cancel() → Future<bool?>
Cancel recognition.
dispose() → Future<void>
Release service resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPartial() → Stream<String>
Get stream with voice recognition partial results.
onResult() → Stream<String>
Get stream with voice recognition results.
reset() → Future<bool?>
Reset recognition. See Recognizer.reset.
setPause({required bool paused}) → Future<bool?>
Pause/unpause recognition.
start({Function? onRecognitionError}) → Future<bool?>
Start recognition. Use onResult and onPartial to get recognition results.
stop() → Future<bool?>
Stop recognition.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited