Class TranscriptionSessionUpdate.Session.Builder
-
- All Implemented Interfaces:
public final class TranscriptionSessionUpdate.Session.Builder
A builder for Session.
-
-
Method Summary
-
-
Method Detail
-
include
final TranscriptionSessionUpdate.Session.Builder include(List<TranscriptionSessionUpdate.Session.Include> include)
The set of items to include in the transcription. Current available items are:
item.input_audio_transcription.logprobs
-
include
final TranscriptionSessionUpdate.Session.Builder include(JsonField<List<TranscriptionSessionUpdate.Session.Include>> include)
Sets Builder.include to an arbitrary JSON value.
You should usually call Builder.include with a well-typed
List<Include>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addInclude
final TranscriptionSessionUpdate.Session.Builder addInclude(TranscriptionSessionUpdate.Session.Include include)
Adds a single Include to Builder.include.
-
inputAudioFormat
final TranscriptionSessionUpdate.Session.Builder inputAudioFormat(TranscriptionSessionUpdate.Session.InputAudioFormat inputAudioFormat)
The format of input audio. Options are
pcm16
,g711_ulaw
, org711_alaw
. Forpcm16
, input audio must be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian byte order.
-
inputAudioFormat
final TranscriptionSessionUpdate.Session.Builder inputAudioFormat(JsonField<TranscriptionSessionUpdate.Session.InputAudioFormat> inputAudioFormat)
Sets Builder.inputAudioFormat to an arbitrary JSON value.
You should usually call Builder.inputAudioFormat with a well-typed InputAudioFormat value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputAudioNoiseReduction
final TranscriptionSessionUpdate.Session.Builder inputAudioNoiseReduction(TranscriptionSessionUpdate.Session.InputAudioNoiseReduction inputAudioNoiseReduction)
Configuration for input audio noise reduction. This can be set to
null
to turn off. Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model. Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
-
inputAudioNoiseReduction
final TranscriptionSessionUpdate.Session.Builder inputAudioNoiseReduction(JsonField<TranscriptionSessionUpdate.Session.InputAudioNoiseReduction> inputAudioNoiseReduction)
Sets Builder.inputAudioNoiseReduction to an arbitrary JSON value.
You should usually call Builder.inputAudioNoiseReduction with a well-typed InputAudioNoiseReduction value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputAudioTranscription
final TranscriptionSessionUpdate.Session.Builder inputAudioTranscription(AudioTranscription inputAudioTranscription)
Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.
-
inputAudioTranscription
final TranscriptionSessionUpdate.Session.Builder inputAudioTranscription(JsonField<AudioTranscription> inputAudioTranscription)
Sets Builder.inputAudioTranscription to an arbitrary JSON value.
You should usually call Builder.inputAudioTranscription with a well-typed AudioTranscription value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
turnDetection
final TranscriptionSessionUpdate.Session.Builder turnDetection(TranscriptionSessionUpdate.Session.TurnDetection turnDetection)
Configuration for turn detection. Can be set to
null
to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
-
turnDetection
final TranscriptionSessionUpdate.Session.Builder turnDetection(JsonField<TranscriptionSessionUpdate.Session.TurnDetection> turnDetection)
Sets Builder.turnDetection to an arbitrary JSON value.
You should usually call Builder.turnDetection with a well-typed TurnDetection value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TranscriptionSessionUpdate.Session.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionSessionUpdate.Session.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionSessionUpdate.Session.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionSessionUpdate.Session.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionSessionUpdate.Session.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionSessionUpdate.Session build()
Returns an immutable instance of Session.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-