Class TranscriptionSessionUpdatedEvent.Session.Builder
-
- All Implemented Interfaces:
public final class TranscriptionSessionUpdatedEvent.Session.Builder
A builder for Session.
-
-
Method Summary
-
-
Method Detail
-
clientSecret
final TranscriptionSessionUpdatedEvent.Session.Builder clientSecret(TranscriptionSessionUpdatedEvent.Session.ClientSecret clientSecret)
Ephemeral key returned by the API. Only present when the session is created on the server via REST API.
-
clientSecret
final TranscriptionSessionUpdatedEvent.Session.Builder clientSecret(JsonField<TranscriptionSessionUpdatedEvent.Session.ClientSecret> clientSecret)
Sets Builder.clientSecret to an arbitrary JSON value.
You should usually call Builder.clientSecret with a well-typed ClientSecret value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputAudioFormat
final TranscriptionSessionUpdatedEvent.Session.Builder inputAudioFormat(String inputAudioFormat)
The format of input audio. Options are
pcm16
,g711_ulaw
, org711_alaw
.
-
inputAudioFormat
final TranscriptionSessionUpdatedEvent.Session.Builder inputAudioFormat(JsonField<String> inputAudioFormat)
Sets Builder.inputAudioFormat to an arbitrary JSON value.
You should usually call Builder.inputAudioFormat with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputAudioTranscription
final TranscriptionSessionUpdatedEvent.Session.Builder inputAudioTranscription(AudioTranscription inputAudioTranscription)
Configuration of the transcription model.
-
inputAudioTranscription
final TranscriptionSessionUpdatedEvent.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.
-
modalities
final TranscriptionSessionUpdatedEvent.Session.Builder modalities(List<TranscriptionSessionUpdatedEvent.Session.Modality> modalities)
The set of modalities the model can respond with. To disable audio, set this to "text".
-
modalities
final TranscriptionSessionUpdatedEvent.Session.Builder modalities(JsonField<List<TranscriptionSessionUpdatedEvent.Session.Modality>> modalities)
Sets Builder.modalities to an arbitrary JSON value.
You should usually call Builder.modalities with a well-typed
List<Modality>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addModality
final TranscriptionSessionUpdatedEvent.Session.Builder addModality(TranscriptionSessionUpdatedEvent.Session.Modality modality)
Adds a single Modality to modalities.
-
turnDetection
final TranscriptionSessionUpdatedEvent.Session.Builder turnDetection(TranscriptionSessionUpdatedEvent.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 TranscriptionSessionUpdatedEvent.Session.Builder turnDetection(JsonField<TranscriptionSessionUpdatedEvent.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 TranscriptionSessionUpdatedEvent.Session.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionSessionUpdatedEvent.Session.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionSessionUpdatedEvent.Session.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionSessionUpdatedEvent.Session.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionSessionUpdatedEvent.Session.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionSessionUpdatedEvent.Session build()
Returns an immutable instance of Session.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.clientSecret()
-
-
-
-