TranscriptionVerboseResponse class
A verbose transcription response with additional metadata.
Includes word and segment-level timestamps when requested.
- Annotations
-
- @immutable
Constructors
-
TranscriptionVerboseResponse({required String task, required String language, required double duration, required String text, List<
TranscriptionSegment> ? segments, List<TranscriptionWord> ? words}) -
Creates a TranscriptionVerboseResponse.
const
-
TranscriptionVerboseResponse.fromJson(Map<
String, dynamic> json) -
Creates a TranscriptionVerboseResponse from JSON.
factory
Properties
- duration → double
-
The duration of the audio in seconds.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- language → String
-
The detected or specified language.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segments
→ List<
TranscriptionSegment> ? -
Segments with timestamps.
final
- task → String
-
The task performed (always "transcribe").
final
- text → String
-
The full transcribed text.
final
-
words
→ List<
TranscriptionWord> ? -
Individual words with timestamps.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts to JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override