MultiInstanceConfig class

Configuration details for a multi-model keyword detection instance.

Constructors

MultiInstanceConfig({required String id, required List<String> modelNames, required List<double> thresholds, required List<int> bufferCnts, required List<int> msBetweenCallback, bool sticky = false})
Constructs a MultiInstanceConfig with required parameters.

Properties

bufferCnts → List<int>
Number of audio buffers to use per model. Controls latency and memory use.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
A unique identifier for the detection instance.
final
modelNames → List<String>
A list of model names to load for this instance.
final
msBetweenCallback → List<int>
Minimum milliseconds between callbacks per model. Prevents flooding.
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
thresholds → List<double>
Detection thresholds per model. Each value typically balances false positives vs detection sensitivity.
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