Class RealtimeTranslationInputAudioBufferAppendEvent.Builder
-
- All Implemented Interfaces:
public final class RealtimeTranslationInputAudioBufferAppendEvent.BuilderA builder for RealtimeTranslationInputAudioBufferAppendEvent.
-
-
Method Summary
-
-
Method Detail
-
audio
final RealtimeTranslationInputAudioBufferAppendEvent.Builder audio(String audio)
Base64-encoded 24 kHz PCM16 mono audio bytes.
-
audio
final RealtimeTranslationInputAudioBufferAppendEvent.Builder audio(JsonField<String> audio)
Sets Builder.audio to an arbitrary JSON value.
You should usually call Builder.audio with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeTranslationInputAudioBufferAppendEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("session.input_audio_buffer.append")This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final RealtimeTranslationInputAudioBufferAppendEvent.Builder eventId(String eventId)
Optional client-generated ID used to identify this event.
-
eventId
final RealtimeTranslationInputAudioBufferAppendEvent.Builder eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value.
You should usually call Builder.eventId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeTranslationInputAudioBufferAppendEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeTranslationInputAudioBufferAppendEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeTranslationInputAudioBufferAppendEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeTranslationInputAudioBufferAppendEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeTranslationInputAudioBufferAppendEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeTranslationInputAudioBufferAppendEvent build()
Returns an immutable instance of RealtimeTranslationInputAudioBufferAppendEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.audio()
-
-
-
-