Package com.openai.models.realtime
Interface RealtimeAudioInputTurnDetection.Visitor
-
- All Implemented Interfaces:
public interface RealtimeAudioInputTurnDetection.Visitor<T extends Object>
An interface that defines how to map each variant of RealtimeAudioInputTurnDetection to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitServerVad(RealtimeAudioInputTurnDetection.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(RealtimeAudioInputTurnDetection.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 RealtimeAudioInputTurnDetection to a value of type T. -
-
Method Detail
-
visitServerVad
abstract T visitServerVad(RealtimeAudioInputTurnDetection.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(RealtimeAudioInputTurnDetection.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 RealtimeAudioInputTurnDetection to a value of type T.
An instance of RealtimeAudioInputTurnDetection 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.
-
-
-
-