Class RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder
-
- All Implemented Interfaces:
public final class RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder
A builder for TurnDetection.
-
-
Method Summary
-
-
Method Detail
-
prefixPaddingMs
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder prefixPaddingMs(Long prefixPaddingMs)
Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.
-
prefixPaddingMs
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder prefixPaddingMs(JsonField<Long> prefixPaddingMs)
Sets Builder.prefixPaddingMs to an arbitrary JSON value.
You should usually call Builder.prefixPaddingMs with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
silenceDurationMs
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder silenceDurationMs(Long silenceDurationMs)
Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. With shorter values the model will respond more quickly, but may jump in on short pauses from the user.
-
silenceDurationMs
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder silenceDurationMs(JsonField<Long> silenceDurationMs)
Sets Builder.silenceDurationMs to an arbitrary JSON value.
You should usually call Builder.silenceDurationMs with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
threshold
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder threshold(Double threshold)
Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.
-
threshold
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder threshold(JsonField<Double> threshold)
Sets Builder.threshold to an arbitrary JSON value.
You should usually call Builder.threshold with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder type(RealtimeTranscriptionSessionCreateRequest.TurnDetection.Type type)
Type of turn detection. Only
server_vad
is currently supported for transcription sessions.
-
type
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder type(JsonField<RealtimeTranscriptionSessionCreateRequest.TurnDetection.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeTranscriptionSessionCreateRequest.TurnDetection.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeTranscriptionSessionCreateRequest.TurnDetection build()
Returns an immutable instance of TurnDetection.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-