TranscriptionSegmentMessage class

One word or phrase of a transcription.

Constructors

TranscriptionSegmentMessage({required String text, required int start, required int length, double? startTime, double? endTime, double? confidence, required List<String> alternatives})

Properties

alternatives ↔ List<String>
getter/setter pair
confidence ↔ double?
0...1.
getter/setter pair
endTime ↔ double?
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
length ↔ int
UTF-16 length of the segment in the full text.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start ↔ int
UTF-16 offset of the segment in the full text.
getter/setter pair
startTime ↔ double?
Seconds from the start of the audio.
getter/setter pair
text ↔ String
getter/setter pair

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

decode(Object result) → TranscriptionSegmentMessage