Class ChatCompletionAudioParam.Voice
-
- All Implemented Interfaces:
public final class ChatCompletionAudioParam.VoiceThe voice the model uses to respond. Supported built-in voices are
alloy,ash,ballad,coral,echo,fable,nova,onyx,sage,shimmer,marin, andcedar. You may also provide a custom voice object with anid, for example{ "id": "voice_1234" }.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceChatCompletionAudioParam.Voice.VisitorAn interface that defines how to map each variant of Voice to a value of type T.
public final classChatCompletionAudioParam.Voice.UnionMember1public final classChatCompletionAudioParam.Voice.IdCustom voice reference.
-
Method Summary
-
-
Method Detail
-
unionMember1
final Optional<ChatCompletionAudioParam.Voice.UnionMember1> unionMember1()
-
id
final Optional<ChatCompletionAudioParam.Voice.Id> id()
Custom voice reference.
-
isUnionMember1
final Boolean isUnionMember1()
-
asUnionMember1
final ChatCompletionAudioParam.Voice.UnionMember1 asUnionMember1()
-
asId
final ChatCompletionAudioParam.Voice.Id asId()
Custom voice reference.
-
accept
final <T extends Any> T accept(ChatCompletionAudioParam.Voice.Visitor<T> visitor)
-
validate
final ChatCompletionAudioParam.Voice validate()
-
ofString
final static ChatCompletionAudioParam.Voice ofString(String string)
-
ofUnionMember1
final static ChatCompletionAudioParam.Voice ofUnionMember1(ChatCompletionAudioParam.Voice.UnionMember1 unionMember1)
-
ofId
final static ChatCompletionAudioParam.Voice ofId(ChatCompletionAudioParam.Voice.Id id)
Custom voice reference.
-
-
-
-