WhisperRequest class
Request configuration for OpenAI Whisper API
Constructors
- WhisperRequest({required File audioFile, String model = 'whisper-1', String? prompt, WhisperResponseFormat responseFormat = WhisperResponseFormat.json, double? temperature, String? language})
-
const
Properties
- audioFile → File
-
The audio file to transcribe
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String?
-
The language of the input audio (ISO-639-1 format)
final
- model → String
-
The model to use for transcription (default: whisper-1)
final
- prompt → String?
-
An optional text to guide the model's style or continue a previous audio segment
final
- responseFormat → WhisperResponseFormat
-
The format of the transcript output (json, text, srt, verbose_json, or vtt)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- temperature → double?
-
The sampling temperature, between 0 and 1
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFormData(
) → Map< String, dynamic> - Converts the request to a map for multipart form data
-
toString(
) → String -
A string representation of this object.
override
-
validate(
) → void - Validates the request parameters
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited