Package com.openai.models.realtime
Interface RealtimeSession.TurnDetection.Visitor
-
- All Implemented Interfaces:
public interface RealtimeSession.TurnDetection.Visitor<T extends Object>
An interface that defines how to map each variant of TurnDetection to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitServerVad(RealtimeSession.TurnDetection.ServerVad serverVad)
Server-side voice activity detection (VAD) which flips on when user speech is detected and off after a period of silence. abstract T
visitSemanticVad(RealtimeSession.TurnDetection.SemanticVad semanticVad)
Server-side semantic turn detection which uses a model to determine when the user has finished speaking. T
unknown(JsonValue json)
Maps an unknown variant of TurnDetection to a value of type T. -
-
Method Detail
-
visitServerVad
abstract T visitServerVad(RealtimeSession.TurnDetection.ServerVad serverVad)
Server-side voice activity detection (VAD) which flips on when user speech is detected and off after a period of silence.
-
visitSemanticVad
abstract T visitSemanticVad(RealtimeSession.TurnDetection.SemanticVad semanticVad)
Server-side semantic turn detection which uses a model to determine when the user has finished speaking.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of TurnDetection to a value of type T.
An instance of TurnDetection can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-