RealtimeAudioInputTurnDetection class sealed
Turn detection configuration for Realtime sessions.
A discriminated union covering the two supported strategies:
- ServerVad — server-side voice activity detection that flips on/off based on audio volume.
- SemanticVad — turn detection that uses a model to predict when the speaker has finished.
An UnknownRealtimeAudioInputTurnDetection fallback preserves any unrecognised payload so future server additions do not break existing clients.
- Implementers
Constructors
-
RealtimeAudioInputTurnDetection.fromJson(Map<
String, dynamic> json) -
Creates from JSON.
factory
- RealtimeAudioInputTurnDetection.semanticVad({bool? createResponse, SemanticVadEagerness? eagerness, bool? interruptResponse})
-
Semantic VAD turn detection.
constfactory
- RealtimeAudioInputTurnDetection.serverVad({bool? createResponse, int? idleTimeoutMs, bool? interruptResponse, int? prefixPaddingMs, int? silenceDurationMs, double? threshold})
-
Server VAD turn detection.
constfactory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited