Class RealtimeResponseCreateAudioOutput.Output.Builder
-
- All Implemented Interfaces:
public final class RealtimeResponseCreateAudioOutput.Output.Builder
A builder for Output.
-
-
Method Summary
-
-
Method Detail
-
format
final RealtimeResponseCreateAudioOutput.Output.Builder format(RealtimeAudioFormats format)
The format of the output audio.
-
format
final RealtimeResponseCreateAudioOutput.Output.Builder format(JsonField<RealtimeAudioFormats> format)
Sets Builder.format to an arbitrary JSON value.
You should usually call Builder.format with a well-typed RealtimeAudioFormats value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
format
final RealtimeResponseCreateAudioOutput.Output.Builder format(RealtimeAudioFormats.AudioPcm audioPcm)
Alias for calling format with
RealtimeAudioFormats.ofAudioPcm(audioPcm)
.
-
format
final RealtimeResponseCreateAudioOutput.Output.Builder format(RealtimeAudioFormats.AudioPcmu audioPcmu)
Alias for calling format with
RealtimeAudioFormats.ofAudioPcmu(audioPcmu)
.
-
format
final RealtimeResponseCreateAudioOutput.Output.Builder format(RealtimeAudioFormats.AudioPcma audioPcma)
Alias for calling format with
RealtimeAudioFormats.ofAudioPcma(audioPcma)
.
-
voice
final RealtimeResponseCreateAudioOutput.Output.Builder voice(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.
-
voice
final RealtimeResponseCreateAudioOutput.Output.Builder voice(JsonField<RealtimeResponseCreateAudioOutput.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 RealtimeResponseCreateAudioOutput.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 RealtimeResponseCreateAudioOutput.Output.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeResponseCreateAudioOutput.Output.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeResponseCreateAudioOutput.Output.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeResponseCreateAudioOutput.Output.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeResponseCreateAudioOutput.Output.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeResponseCreateAudioOutput.Output build()
Returns an immutable instance of Output.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-