SpeechRecognitionError class
A single error returned from the underlying speech services.
Errors are either transient or permanent. Permanent errors block speech recognition from continuing and must be addressed before recognition will work. Transient errors cause individual recognition sessions to fail but subsequent attempts may well succeed.
- Annotations
-
- @JsonSerializable()
Constructors
- SpeechRecognitionError(String errorMsg, bool permanent)
-
SpeechRecognitionError.fromJson(Map<
String, dynamic> json) -
factory
Properties
- errorMsg → String
-
Use this to differentiate the various error conditions.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- permanent → bool
-
True means that recognition cannot continue until
the error is resolved.
final
- 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
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override