Class RealtimeResponseCreateAudioOutput.Output
-
- All Implemented Interfaces:
public final class RealtimeResponseCreateAudioOutput.Output
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeResponseCreateAudioOutput.Output.Builder
A builder for Output.
public final class
RealtimeResponseCreateAudioOutput.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<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.Builder
toBuilder()
final RealtimeResponseCreateAudioOutput.Output
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeResponseCreateAudioOutput.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<RealtimeResponseCreateAudioOutput.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<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()
-
builder
final static RealtimeResponseCreateAudioOutput.Output.Builder builder()
Returns a mutable builder for constructing an instance of Output.
-
-
-
-