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