MethodChannelSpeechToText class

An implementation of SpeechToTextPlatform that uses method channels.

Inheritance

Constructors

MethodChannelSpeechToText()

Properties

channel → MethodChannel
no setter
hashCode → int
The hash code for this object.
no setterinherited
onError ↔ void Function(String error)?
getter/setter pairinherited
onSoundLevel ↔ void Function(double level)?
getter/setter pairinherited
onStatus ↔ void Function(String error)?
getter/setter pairinherited
onTextRecognition ↔ void Function(String error)?
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → Future<void>
Cancels the current listen for speech if active, does nothing if not.
override
hasOnDeviceSupport({String? localeId}) → Future<bool>
Returns true if the device can recognize speech without a network connection, for localeId where the platform makes that distinction.
override
hasPermission() → Future<bool>
Returns true if the user has already granted permission to access the microphone, does not prompt the user.
override
initialize({dynamic debugLogging = false, List<SpeechConfigOption>? options}) → Future<bool>
Initialize speech recognition services, returns true if successful, false if failed.
override
listen({String? localeId, dynamic partialResults = true, dynamic onDevice = false, int listenMode = 0, dynamic sampleRate = 0, SpeechListenOptions? options}) → Future<bool>
Starts a listening session for speech and converts it to text.
override
locales() → Future<List>
returns the list of speech locales available on the device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processMethodCall(MethodCall call) → Future
stop() → Future<void>
Stops the current listen for speech if active, does nothing if not.
override
toString() → String
A string representation of this object.
inherited

Operators

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