AudioRequest class

Constructors

AudioRequest({required EditFile file, String? prompt, AudioFormat? responseFormat, int temperature = 0, String? language})

Properties

file EditFile
The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.file
final
hashCode int
The hash code for this object.
no setterinherited
language String?
The language of the input audio. Supplying the input language in ISO-639-1 format will improve accuracy and latency. language
final
prompt String?
An optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.prompt
final
responseFormat → AudioFormat?
The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. responseFormat
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
temperature int
The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.temperature
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Future<FormData>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited