SORIServerRecognitionOptions class
Cadence and delay of the server queries of a server SORIRecognitionMode. An immutable value; equal values compare equal.
Every server query is one 3.25 s (windowMillis) audio window. validate applies the rules shared by every SORI SDK:
- intervalMillis:
0sends every capture window (continuous; server mode only); a positive value sends one window per period and must be at least windowMillis and at most maxIntervalMillis. - burstMillis:
0sends one window per period; otherwise every window in the first burstMillis of each period is sent, withwindowMillis <= burstMillis < intervalMillis. The microphone stays on between bursts. - delayMillis:
0to maxDelayMillis. The queried window ends this long before the newest captured audio.
Constructors
- SORIServerRecognitionOptions({int intervalMillis = 0, int burstMillis = 0, int delayMillis = defaultDelayMillis})
-
const
Properties
- burstMillis → int
-
Continuous queries at the start of each period, in milliseconds;
0is one query per period.final - delayMillis → int
-
How long before the newest captured audio each queried window ends, in
milliseconds.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- intervalMillis → int
-
Server query period in milliseconds;
0is continuous.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - The platform wire map. Throws like validate.
-
toString(
) → String -
A string representation of this object.
override
-
validate(
) → void - Throws an ArgumentError for a value outside the rules above.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- defaultDelayMillis → const int
- Default delayMillis.
- maxDelayMillis → const int
- Largest delayMillis.
- maxIntervalMillis → const int
-
Largest intervalMillis and burstMillis:
INT64_MAX / 1000000ms (about 292 years), the bound of both native SDKs, past which their time arithmetic would overflow. - windowMillis → const int
- Duration of the audio window of one server query: 52 hops (3.25 s). It is the smallest positive intervalMillis and burstMillis.