InstanceConfig class

Configuration details for a particular instance of the keyword detection engine.

Constructors

InstanceConfig({required String id, required String modelName, required double threshold, required int bufferCnt, bool sticky = false})
Constructs an InstanceConfig with id, modelName, threshold, bufferCnt, and sticky.

Properties

bufferCnt → int
The number of audio buffers to use internally. This can be used to tweak latency or memory usage.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
A unique identifier for the detection instance.
final
modelName → String
The model name to load for this detection instance.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sticky → bool
Whether the detection instance is sticky (on Android). If true, the underlying service may attempt to run persistently as a foreground service.
final
threshold → double
The detection threshold. A higher value typically means fewer false positives but also fewer detections overall.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited