Result class final

The Result associated with a TranscriptEvent.

Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data.

Constructors

Result({String? resultId, num? startTime, num? endTime, bool? isPartial, List<Alternative>? alternatives, String? channelId, LanguageCode? languageCode, List<LanguageWithScore>? languageIdentification})
Creates a Result from the given values.
const
Result.fromJson(String source)
Creates a Result from the given JSON string.
factory
Result.fromMap(Map<String, dynamic> map)
Creates a Result from the given Map.
factory

Properties

alternatives List<Alternative>?
A list of possible alternative transcriptions for the input audio.
final
channelId String?
Indicates which audio channel is associated with the Result.
final
endTime num?
The end time, in milliseconds, of the Result.
final
hashCode int
The hash code for this object.
no setterinherited
isPartial bool?
Indicates if the segment is complete.
final
languageCode LanguageCode?
The language code that represents the language spoken in your stream.
final
languageIdentification List<LanguageWithScore>?
The language code of the dominant language identified in your stream.
final
resultId String?
Provides a unique identifier for the Result.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime num?
The start time, in milliseconds, of the Result.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Returns the JSON string representation of this Result.
toMap() Map<String, dynamic>
Returns the Map representation of this Result.
toString() String
A string representation of this object.
inherited

Operators

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