Class RealtimeSessionCreateResponse.Audio.Output
-
- All Implemented Interfaces:
public final class RealtimeSessionCreateResponse.Audio.Output
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeSessionCreateResponse.Audio.Output.Builder
A builder for Output.
public final class
RealtimeSessionCreateResponse.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
-
-
Method Detail
-
format
final Optional<RealtimeAudioFormats> format()
The format of the output audio.
-
speed
final Optional<Double> speed()
The speed of the model's spoken response as a multiple of the original speed. 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.
This parameter is a post-processing adjustment to the audio after it is generated, it's also possible to prompt the model to speak faster or slower.
-
voice
final Optional<RealtimeSessionCreateResponse.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.
-
_speed
final JsonField<Double> _speed()
Returns the raw JSON value of speed.
Unlike speed, this method doesn't throw if the JSON field has an unexpected type.
-
_voice
final JsonField<RealtimeSessionCreateResponse.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 RealtimeSessionCreateResponse.Audio.Output.Builder toBuilder()
-
validate
final RealtimeSessionCreateResponse.Audio.Output validate()
-
builder
final static RealtimeSessionCreateResponse.Audio.Output.Builder builder()
Returns a mutable builder for constructing an instance of Output.
-
-
-
-