Class AudioTranslationCreateParams.Body
-
- All Implemented Interfaces:
public final class AudioTranslationCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAudioTranslationCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final ByteArrayfile()The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. final AudioModelmodel()ID of the model to use. final Optional<String>prompt()An optional text to guide the model's style or continue a previous audio segment. final Optional<AudioResponseFormat>responseFormat()The format of the output, in one of these options: json,text,srt,verbose_json, orvtt.final Optional<Double>temperature()The sampling temperature, between 0 and 1. final MultipartField<ByteArray>_file()The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. final MultipartField<AudioModel>_model()ID of the model to use. final MultipartField<String>_prompt()An optional text to guide the model's style or continue a previous audio segment. final MultipartField<AudioResponseFormat>_responseFormat()The format of the output, in one of these options: json,text,srt,verbose_json, orvtt.final MultipartField<Double>_temperature()The sampling temperature, between 0 and 1. final AudioTranslationCreateParams.Bodyvalidate()final AudioTranslationCreateParams.Body.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AudioTranslationCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
file
final ByteArray file()
The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
-
model
final AudioModel model()
ID of the model to use. Only
whisper-1(which is powered by our open source Whisper V2 model) is currently available.
-
prompt
final Optional<String> prompt()
An optional text to guide the model's style or continue a previous audio segment. The prompt should be in English.
-
responseFormat
final Optional<AudioResponseFormat> responseFormat()
The format of the output, in one of these options:
json,text,srt,verbose_json, orvtt.
-
temperature
final Optional<Double> temperature()
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.
-
_file
final MultipartField<ByteArray> _file()
The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
-
_model
final MultipartField<AudioModel> _model()
ID of the model to use. Only
whisper-1(which is powered by our open source Whisper V2 model) is currently available.
-
_prompt
final MultipartField<String> _prompt()
An optional text to guide the model's style or continue a previous audio segment. The prompt should be in English.
-
_responseFormat
final MultipartField<AudioResponseFormat> _responseFormat()
The format of the output, in one of these options:
json,text,srt,verbose_json, orvtt.
-
_temperature
final MultipartField<Double> _temperature()
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.
-
validate
final AudioTranslationCreateParams.Body validate()
-
toBuilder
final AudioTranslationCreateParams.Body.Builder toBuilder()
-
builder
final static AudioTranslationCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.file() .model()
-
-
-
-