ServerVad class

Server-side voice activity detection.

Inheritance
Annotations
  • @immutable

Constructors

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

Properties

createResponse bool?
Whether to automatically generate a response on VAD stop.
final
hashCode int
The hash code for this object.
no setteroverride
idleTimeoutMs int?
Idle timeout in milliseconds (5000–30000) that triggers a model response.
final
interruptResponse bool?
Whether to interrupt an in-progress response on VAD start.
final
prefixPaddingMs int?
Audio padding before detected speech (ms). Default 300.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
silenceDurationMs int?
Silence duration to detect speech end (ms). Default 500.
final
threshold double?
Activation threshold (0.0–1.0). Default 0.5.
final
type String
The discriminator value.
no setteroverride

Methods

copyWith({Object? createResponse = unsetCopyWithValue, Object? idleTimeoutMs = unsetCopyWithValue, Object? interruptResponse = unsetCopyWithValue, Object? prefixPaddingMs = unsetCopyWithValue, Object? silenceDurationMs = unsetCopyWithValue, Object? threshold = unsetCopyWithValue}) ServerVad
Returns a copy with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

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