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 class
RealtimeResponse.Audio.Output.Builder
A builder for Output.
public final class
RealtimeResponse.Audio.Output.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 recommendmarin
andcedar
for 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.Builder
toBuilder()
final RealtimeResponse.Audio.Output
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeResponse.Audio.Output.Builder
builder()
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 recommendmarin
andcedar
for 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.
-
-
-
-