SpeechRecognitionWords class

A set of words recognized in a SpeechRecognitionResult.

Each result will have one or more SpeechRecognitionWords with a varying degree of confidence about each set of words.

Annotations
  • @JsonSerializable()

Constructors

SpeechRecognitionWords(String recognizedWords, double confidence)
const
SpeechRecognitionWords.fromJson(Map<String, dynamic> json)
factory

Properties

confidence double
The confidence that the recognizedWords are correct.
final
hasConfidenceRating bool
true if confidence is not the missingConfidence value, false otherwise.
no setter
hashCode int
The hash code for this object.
no setteroverride
recognizedWords String
The sequence of words recognized
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isConfident({double threshold = confidenceThreshold}) bool
true if there is confidence in this recognition, false otherwise.
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

Constants

confidenceThreshold → const double
missingConfidence → const double