TurnDetection class

Turn detection configuration.

Annotations
  • @immutable

Constructors

TurnDetection({TurnDetectionType? type, double? threshold, int? prefixPaddingMs, int? silenceDurationMs, bool? createResponse})
Creates a TurnDetection.
const
TurnDetection.fromJson(Map<String, dynamic> json)
Creates a TurnDetection from JSON.
factory

Properties

createResponse bool?
Whether to automatically create a response.
final
hashCode int
The hash code for this object.
no setteroverride
prefixPaddingMs int?
Audio to include before speech starts (ms).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
silenceDurationMs int?
Duration of silence to detect end of speech (ms).
final
threshold double?
Voice activity detection threshold (0.0 to 1.0).
final
type TurnDetectionType?
The type of turn detection.
final

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.
override

Operators

operator ==(Object other) bool
The equality operator.
override