Class RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad
-
- All Implemented Interfaces:
public final class RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVadServer-side semantic turn detection which uses a model to determine when the user has finished speaking.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.BuilderA builder for SemanticVad.
public final classRealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.EagernessUsed only for
semantic_vadmode. The eagerness of the model to respond.lowwill wait longer for the user to continue speaking,highwill respond more quickly.autois the default and is equivalent tomedium.low,medium, andhighhave max timeouts of 8s, 4s, and 2s respectively.
-
Method Summary
-
-
Method Detail
-
_type
final JsonValue _type()
Type of turn detection,
semantic_vadto turn on Semantic VAD.Expected to always return the following:
JsonValue.from("semantic_vad")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
createResponse
final Optional<Boolean> createResponse()
Whether or not to automatically generate a response when a VAD stop event occurs.
-
eagerness
final Optional<RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Eagerness> eagerness()
Used only for
semantic_vadmode. The eagerness of the model to respond.lowwill wait longer for the user to continue speaking,highwill respond more quickly.autois the default and is equivalent tomedium.low,medium, andhighhave max timeouts of 8s, 4s, and 2s respectively.
-
interruptResponse
final Optional<Boolean> interruptResponse()
Whether or not to automatically interrupt any ongoing response with output to the default conversation (i.e.
conversationofauto) when a VAD start event occurs.
-
_createResponse
final JsonField<Boolean> _createResponse()
Returns the raw JSON value of createResponse.
Unlike createResponse, this method doesn't throw if the JSON field has an unexpected type.
-
_eagerness
final JsonField<RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Eagerness> _eagerness()
Returns the raw JSON value of eagerness.
Unlike eagerness, this method doesn't throw if the JSON field has an unexpected type.
-
_interruptResponse
final JsonField<Boolean> _interruptResponse()
Returns the raw JSON value of interruptResponse.
Unlike interruptResponse, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad validate()
-
builder
final static RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder builder()
Returns a mutable builder for constructing an instance of SemanticVad.
-
-
-
-