Class RealtimeResponseCreateAudioOutput.Output
-
- All Implemented Interfaces:
public final class RealtimeResponseCreateAudioOutput.Output
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeResponseCreateAudioOutput.Output.BuilderA builder for Output.
public final classRealtimeResponseCreateAudioOutput.Output.VoiceThe voice the model uses to respond. Supported built-in voices are
alloy,ash,ballad,coral,echo,sage,shimmer,verse,marin, andcedar. You may also provide a custom voice object with anid, for example{ "id": "voice_1234" }. Voice cannot be changed during the session once the model has responded with audio at least once. We recommendmarinandcedarfor best quality.
-
Method Summary
Modifier and Type Method Description final Optional<RealtimeAudioFormats>format()The format of the output audio. final Optional<RealtimeResponseCreateAudioOutput.Output.Voice>voice()The voice the model uses to respond. final JsonField<RealtimeAudioFormats>_format()Returns the raw JSON value of format. final JsonField<RealtimeResponseCreateAudioOutput.Output.Voice>_voice()Returns the raw JSON value of voice. final Map<String, JsonValue>_additionalProperties()final RealtimeResponseCreateAudioOutput.Output.BuildertoBuilder()final RealtimeResponseCreateAudioOutput.Outputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponseCreateAudioOutput.Output.Builderbuilder()Returns a mutable builder for constructing an instance of Output. -
-
Method Detail
-
format
final Optional<RealtimeAudioFormats> format()
The format of the output audio.
-
voice
final Optional<RealtimeResponseCreateAudioOutput.Output.Voice> voice()
The voice the model uses to respond. Supported built-in voices are
alloy,ash,ballad,coral,echo,sage,shimmer,verse,marin, andcedar. You may also provide a custom voice object with anid, for example{ "id": "voice_1234" }. Voice cannot be changed during the session once the model has responded with audio at least once. We recommendmarinandcedarfor best quality.
-
_format
final JsonField<RealtimeAudioFormats> _format()
Returns the raw JSON value of format.
Unlike format, this method doesn't throw if the JSON field has an unexpected type.
-
_voice
final JsonField<RealtimeResponseCreateAudioOutput.Output.Voice> _voice()
Returns the raw JSON value of voice.
Unlike voice, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeResponseCreateAudioOutput.Output.Builder toBuilder()
-
validate
final RealtimeResponseCreateAudioOutput.Output validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RealtimeResponseCreateAudioOutput.Output.Builder builder()
Returns a mutable builder for constructing an instance of Output.
-
-
-
-