Class ChatCompletionAudioParam.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionAudioParam.Builder
A builder for ChatCompletionAudioParam.
-
-
Method Summary
-
-
Method Detail
-
format
final ChatCompletionAudioParam.Builder format(ChatCompletionAudioParam.Format format)
Specifies the output audio format. Must be one of
wav
,mp3
,flac
,opus
, orpcm16
.
-
format
final ChatCompletionAudioParam.Builder format(JsonField<ChatCompletionAudioParam.Format> format)
Sets Builder.format to an arbitrary JSON value.
You should usually call Builder.format with a well-typed Format value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
voice
final ChatCompletionAudioParam.Builder voice(ChatCompletionAudioParam.Voice voice)
The voice the model uses to respond. Supported voices are
alloy
,ash
,ballad
,coral
,echo
,sage
, andshimmer
.
-
voice
final ChatCompletionAudioParam.Builder voice(JsonField<ChatCompletionAudioParam.Voice> voice)
Sets Builder.voice to an arbitrary JSON value.
You should usually call Builder.voice with a well-typed Voice value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
voice
final ChatCompletionAudioParam.Builder voice(String value)
Sets voice to an arbitrary String.
You should usually call voice with a well-typed Voice constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionAudioParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionAudioParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionAudioParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionAudioParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionAudioParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionAudioParam build()
Returns an immutable instance of ChatCompletionAudioParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.format() .voice()
-
-
-
-