Class SORIServerRecognitionOptions
-
- All Implemented Interfaces:
public final class SORIServerRecognitionOptionsCadence and delay of server recognition, used with SORIRecognitionMode.SERVER and SORIRecognitionMode.ON_DEVICE_WITH_PERIODIC_SERVER through SORIConfig.serverRecognition. Each server query is one 52-hop (3.25 s)
afp-v1window, scheduled on the capture sample clock.All values are validated here and throw IllegalArgumentException:
-
-
Field Summary
Fields Modifier and Type Field Description public final static LongDEFAULT_DELAY_MILLISprivate final LongintervalMillisprivate final LongburstMillisprivate final LongdelayMillis
-
Constructor Summary
Constructors Constructor Description SORIServerRecognitionOptions(Long intervalMillis, Long burstMillis, Long delayMillis)SORIServerRecognitionOptions(Long intervalMillis, Long burstMillis)SORIServerRecognitionOptions(Long intervalMillis)SORIServerRecognitionOptions()
-
Method Summary
Modifier and Type Method Description final LonggetIntervalMillis()0(default): continuous, one query per 3.final LonggetBurstMillis()0(default): one window per period.final LonggetDelayMillis()how long before the newest captured audio each queried window ends, 0..60000(default 750).-
-
Constructor Detail
-
SORIServerRecognitionOptions
SORIServerRecognitionOptions(Long intervalMillis, Long burstMillis, Long delayMillis)
-
SORIServerRecognitionOptions
SORIServerRecognitionOptions(Long intervalMillis, Long burstMillis)
-
SORIServerRecognitionOptions
SORIServerRecognitionOptions(Long intervalMillis)
-
SORIServerRecognitionOptions
SORIServerRecognitionOptions()
-
-
Method Detail
-
getIntervalMillis
final Long getIntervalMillis()
0(default): continuous, one query per 3.25 s capture window; allowed only with SORIRecognitionMode.SERVER. A positive value (at least 3250) is the period: one query, or one burst, per period. SORIRecognitionMode.ON_DEVICE_WITH_PERIODIC_SERVER requires a positive value.
-
getBurstMillis
final Long getBurstMillis()
0(default): one window per period. Otherwise every window that starts within the first burstMillis of each period is queried (3250 <= burstMillis < intervalMillis, so a burst needs a positive interval). The microphone stays on between bursts.
-
getDelayMillis
final Long getDelayMillis()
how long before the newest captured audio each queried window ends,
0..60000(default 750). A larger delay lets a buffered source (for example a set-top box that shows its own introduction) catch up before the window is taken.
-
-
-
-