Class RealtimeAudioConfig.Output
-
- All Implemented Interfaces:
public final class RealtimeAudioConfig.Output
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeAudioConfig.Output.Builder
A builder for Output.
public final class
RealtimeAudioConfig.Output.Format
The format of output audio. Options are
pcm16
,g711_ulaw
, org711_alaw
. Forpcm16
, output audio is sampled at a rate of 24kHz.public final class
RealtimeAudioConfig.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
.
-
Method Summary
Modifier and Type Method Description final Optional<RealtimeAudioConfig.Output.Format>
format()
The format of output audio. final Optional<Double>
speed()
The speed of the model's spoken response. final Optional<RealtimeAudioConfig.Output.Voice>
voice()
The voice the model uses to respond. final JsonField<RealtimeAudioConfig.Output.Format>
_format()
Returns the raw JSON value of format. final JsonField<Double>
_speed()
Returns the raw JSON value of speed. final JsonField<RealtimeAudioConfig.Output.Voice>
_voice()
Returns the raw JSON value of voice. final Map<String, JsonValue>
_additionalProperties()
final RealtimeAudioConfig.Output.Builder
toBuilder()
final RealtimeAudioConfig.Output
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeAudioConfig.Output.Builder
builder()
Returns a mutable builder for constructing an instance of Output. -
-
Method Detail
-
format
final Optional<RealtimeAudioConfig.Output.Format> format()
The format of output audio. Options are
pcm16
,g711_ulaw
, org711_alaw
. Forpcm16
, output audio is sampled at a rate of 24kHz.
-
speed
final Optional<Double> speed()
The speed of the model's spoken response. 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.
-
voice
final Optional<RealtimeAudioConfig.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
.
-
_format
final JsonField<RealtimeAudioConfig.Output.Format> _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<RealtimeAudioConfig.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 RealtimeAudioConfig.Output.Builder toBuilder()
-
validate
final RealtimeAudioConfig.Output validate()
-
builder
final static RealtimeAudioConfig.Output.Builder builder()
Returns a mutable builder for constructing an instance of Output.
-
-
-
-