speech_to_text library

Classes

LocaleName
A single locale with a name, localized to the current system locale, and a localeId which can be used in the SpeechToText.listen method to choose a locale for speech recognition.
SpeechConfigOption
Holds a configuration option for a specific platform implementation.
SpeechListenOptions
Options for the listen method. Previously options were provided as separate parameters to listen however as the number of options grew this became unwieldy. The options are now provided as a single object with named parameters. The old style is still supported but deprecated. If both are used the old style arguments are ignored.
SpeechToText
An interface to device specific speech recognition services.

Enums

ListenMode
Describes the goal of your speech recognition to the system.

Typedefs

SpeechErrorListener = void Function(SpeechRecognitionError errorNotification)
Notified if errors occur during recognition or initialization.
SpeechResultListener = void Function(SpeechRecognitionResult result)
Notified as words are recognized with the current set of recognized words.
SpeechSoundLevelChange = dynamic Function(double level)
Notified when the sound level changes during a listen method.
SpeechStatusListener = void Function(String status)
Notified when recognition status changes.

Exceptions / Errors

ListenFailedException
Thrown when listen fails to properly start a speech listening session on the device.
ListenNotStartedException
SpeechToTextNotInitializedException
Thrown when a method is called that requires successful initialization first.