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.
const
factory
RealtimeAudioInputTurnDetection.serverVad({bool? createResponse, int? idleTimeoutMs, bool? interruptResponse, int? prefixPaddingMs, int? silenceDurationMs, double? threshold})
Server VAD turn detection.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The discriminator value.
no setter

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