Class ChatCompletionAudioParam
-
- All Implemented Interfaces:
public final class ChatCompletionAudioParamParameters for audio output. Required when audio output is requested with
modalities: ["audio"]. Learn more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionAudioParam.Builderpublic final classChatCompletionAudioParam.FormatSpecifies the output audio format. Must be one of
wav,mp3,flac,opus, orpcm16.public final classChatCompletionAudioParam.VoiceThe voice the model uses to respond. Supported voices are
ash,ballad,coral,sage, andverse(also supported but not recommended arealloy,echo, andshimmer; these voices are less expressive).
-
Method Summary
Modifier and Type Method Description final ChatCompletionAudioParam.Formatformat()Specifies the output audio format. final ChatCompletionAudioParam.Voicevoice()The voice the model uses to respond. final JsonField<ChatCompletionAudioParam.Format>_format()Specifies the output audio format. final JsonField<ChatCompletionAudioParam.Voice>_voice()The voice the model uses to respond. final Map<String, JsonValue>_additionalProperties()final ChatCompletionAudioParamvalidate()final ChatCompletionAudioParam.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionAudioParam.Builderbuilder()-
-
Method Detail
-
format
final ChatCompletionAudioParam.Format format()
Specifies the output audio format. Must be one of
wav,mp3,flac,opus, orpcm16.
-
voice
final ChatCompletionAudioParam.Voice voice()
The voice the model uses to respond. Supported voices are
ash,ballad,coral,sage, andverse(also supported but not recommended arealloy,echo, andshimmer; these voices are less expressive).
-
_format
final JsonField<ChatCompletionAudioParam.Format> _format()
Specifies the output audio format. Must be one of
wav,mp3,flac,opus, orpcm16.
-
_voice
final JsonField<ChatCompletionAudioParam.Voice> _voice()
The voice the model uses to respond. Supported voices are
ash,ballad,coral,sage, andverse(also supported but not recommended arealloy,echo, andshimmer; these voices are less expressive).
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ChatCompletionAudioParam validate()
-
toBuilder
final ChatCompletionAudioParam.Builder toBuilder()
-
builder
final static ChatCompletionAudioParam.Builder builder()
-
-
-
-