TranscriptSegment class
A recognized transcript segment.
Constructors
-
TranscriptSegment({required String text, Duration? start, Duration? end, double? confidence, String? speaker, List<
TranscriptWord> words = const <TranscriptWord>[]}) -
Creates a transcript segment.
const
Properties
- confidence → double?
-
Confidence in the range 0.0 to 1.0, when available.
final
- end → Duration?
-
End time relative to the beginning of the input, when available.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speaker → String?
-
Speaker label, when diarization is available.
final
- start → Duration?
-
Start time relative to the beginning of the input, when available.
final
- text → String
-
Segment text.
final
-
words
→ List<
TranscriptWord> -
Word-level details, when available.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited