SpeechRecognitionResult class

A speech recognition result corresponding to a portion of the audio.

Constructors

SpeechRecognitionResult({List<SpeechRecognitionAlternative>? alternatives, int? channelTag, String? languageCode, String? resultEndOffset})
SpeechRecognitionResult.fromJson(Map json_)

Properties

alternatives List<SpeechRecognitionAlternative>?
May contain one or more recognition hypotheses.
getter/setter pair
channelTag int?
For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
languageCode String?
The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result.
getter/setter pair
resultEndOffset String?
Time offset of the end of this result relative to the beginning of the audio.
getter/setter pair
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.
inherited

Operators

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