Class RealtimeAudioConfig.Output.Builder
-
- All Implemented Interfaces:
public final class RealtimeAudioConfig.Output.Builder
A builder for Output.
-
-
Method Summary
-
-
Method Detail
-
format
final RealtimeAudioConfig.Output.Builder format(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.
-
format
final RealtimeAudioConfig.Output.Builder format(JsonField<RealtimeAudioConfig.Output.Format> format)
Sets Builder.format to an arbitrary JSON value.
You should usually call Builder.format with a well-typed Format value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
speed
final RealtimeAudioConfig.Output.Builder speed(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.
-
speed
final RealtimeAudioConfig.Output.Builder speed(JsonField<Double> speed)
Sets Builder.speed to an arbitrary JSON value.
You should usually call Builder.speed with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
voice
final RealtimeAudioConfig.Output.Builder voice(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
.
-
voice
final RealtimeAudioConfig.Output.Builder voice(JsonField<RealtimeAudioConfig.Output.Voice> voice)
Sets Builder.voice to an arbitrary JSON value.
You should usually call Builder.voice with a well-typed Voice value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
voice
final RealtimeAudioConfig.Output.Builder voice(String value)
Sets voice to an arbitrary String.
You should usually call voice with a well-typed Voice constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeAudioConfig.Output.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeAudioConfig.Output.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeAudioConfig.Output.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeAudioConfig.Output.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeAudioConfig.Output.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeAudioConfig.Output build()
Returns an immutable instance of Output.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-