Class RealtimeResponse.Audio.Output
-
- All Implemented Interfaces:
public final class RealtimeResponse.Audio.Output
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeResponse.Audio.Output.BuilderA builder for Output.
public final classRealtimeResponse.Audio.Output.VoiceThe voice the model uses to respond. Voice cannot be changed during the session once the model has responded with audio at least once. Current voice options are
alloy,ash,ballad,coral,echo,sage,shimmer,verse,marin, andcedar. We recommendmarinandcedarfor best quality.
-
Method Summary
Modifier and Type Method Description final Optional<RealtimeAudioFormats>format()The format of the output audio. final Optional<RealtimeResponse.Audio.Output.Voice>voice()The voice the model uses to respond. final JsonField<RealtimeAudioFormats>_format()Returns the raw JSON value of format. final JsonField<RealtimeResponse.Audio.Output.Voice>_voice()Returns the raw JSON value of voice. final Map<String, JsonValue>_additionalProperties()final RealtimeResponse.Audio.Output.BuildertoBuilder()final RealtimeResponse.Audio.Outputvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponse.Audio.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<RealtimeResponse.Audio.Output.Voice> voice()
The voice the model uses to respond. Voice cannot be changed during the session once the model has responded with audio at least once. Current voice options are
alloy,ash,ballad,coral,echo,sage,shimmer,verse,marin, andcedar. 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<RealtimeResponse.Audio.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 RealtimeResponse.Audio.Output.Builder toBuilder()
-
validate
final RealtimeResponse.Audio.Output validate()
-
builder
final static RealtimeResponse.Audio.Output.Builder builder()
Returns a mutable builder for constructing an instance of Output.
-
-
-
-