WhisperResponse class
Response model for OpenAI Whisper API
Constructors
-
WhisperResponse({required String text, String? language, double? duration, List<
WhisperSegment> ? segments}) -
const
-
WhisperResponse.fromJson(Map<
String, dynamic> json) -
Creates a WhisperResponse from JSON
factory
Properties
- duration → double?
-
The duration of the audio in seconds
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String?
-
The language detected in the audio (if language detection was used)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segments
→ List<
WhisperSegment> ? -
Additional segments information (if available)
final
- text → String
-
The transcribed text from the audio
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the response to JSON
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited