Class RealtimeTranslationOutputAudioDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class RealtimeTranslationOutputAudioDeltaEvent.BuilderA builder for RealtimeTranslationOutputAudioDeltaEvent.
-
-
Method Summary
-
-
Method Detail
-
delta
final RealtimeTranslationOutputAudioDeltaEvent.Builder delta(String delta)
Base64-encoded translated audio data.
-
delta
final RealtimeTranslationOutputAudioDeltaEvent.Builder delta(JsonField<String> delta)
Sets Builder.delta to an arbitrary JSON value.
You should usually call Builder.delta with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final RealtimeTranslationOutputAudioDeltaEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final RealtimeTranslationOutputAudioDeltaEvent.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.
-
type
final RealtimeTranslationOutputAudioDeltaEvent.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.output_audio.delta")This method is primarily for setting the field to an undocumented or not yet supported value.
-
channels
final RealtimeTranslationOutputAudioDeltaEvent.Builder channels(Long channels)
Number of audio channels.
-
channels
final RealtimeTranslationOutputAudioDeltaEvent.Builder channels(JsonField<Long> channels)
Sets Builder.channels to an arbitrary JSON value.
You should usually call Builder.channels with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
elapsedMs
final RealtimeTranslationOutputAudioDeltaEvent.Builder elapsedMs(Long elapsedMs)
Timing metadata for stream alignment, derived from the translation frame when available. Treat
elapsed_msas alignment metadata, not a unique event identifier.
-
elapsedMs
final RealtimeTranslationOutputAudioDeltaEvent.Builder elapsedMs(Long elapsedMs)
Alias for Builder.elapsedMs.
This unboxed primitive overload exists for backwards compatibility.
-
elapsedMs
final RealtimeTranslationOutputAudioDeltaEvent.Builder elapsedMs(Optional<Long> elapsedMs)
Alias for calling Builder.elapsedMs with
elapsedMs.orElse(null).
-
elapsedMs
final RealtimeTranslationOutputAudioDeltaEvent.Builder elapsedMs(JsonField<Long> elapsedMs)
Sets Builder.elapsedMs to an arbitrary JSON value.
You should usually call Builder.elapsedMs with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
format
final RealtimeTranslationOutputAudioDeltaEvent.Builder format(RealtimeTranslationOutputAudioDeltaEvent.Format format)
Audio encoding for
delta.
-
format
final RealtimeTranslationOutputAudioDeltaEvent.Builder format(JsonField<RealtimeTranslationOutputAudioDeltaEvent.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.
-
sampleRate
final RealtimeTranslationOutputAudioDeltaEvent.Builder sampleRate(Long sampleRate)
Sample rate of the audio delta.
-
sampleRate
final RealtimeTranslationOutputAudioDeltaEvent.Builder sampleRate(JsonField<Long> sampleRate)
Sets Builder.sampleRate to an arbitrary JSON value.
You should usually call Builder.sampleRate with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeTranslationOutputAudioDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeTranslationOutputAudioDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeTranslationOutputAudioDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeTranslationOutputAudioDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeTranslationOutputAudioDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeTranslationOutputAudioDeltaEvent build()
Returns an immutable instance of RealtimeTranslationOutputAudioDeltaEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.delta() .eventId()
-
-
-
-