SpeechRecognitionEvent class

A single event in a stream of speech recognition events.

Use eventType to determine what type of event it is and depending on that use the other properties to get information about it.

Constructors

SpeechRecognitionEvent(SpeechRecognitionEventType eventType, SpeechRecognitionResult? _result, SpeechRecognitionError? _error, bool? _listening, double? _level)

Properties

error SpeechRecognitionError?
The error received from the speech recognizer.
no setter
eventType SpeechRecognitionEventType
final
hashCode int
The hash code for this object.
no setterinherited
isListening bool?
true when there is still an active listening session, false when the listening session has ended.
no setter
level double?
the sound level seen on the input.
no setter
recognitionResult SpeechRecognitionResult?
The words recognized by the speech recognizer during a listen session.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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