enum classafFancomSapi::SpeechRecognizerState

sys::Obj
  sys::Enum
    afFancomSapi::SpeechRecognizerState

@Serializable { simple=true }

SRSActive

Source

const static SpeechRecognizerState SRSActive := ...

Recognition takes place if there are any active rules. If a rule is active, audio will be read and passed to the SR engine and recognition will take place.

Value is 1 (0x1)

SRSActiveAlways

Source

const static SpeechRecognizerState SRSActiveAlways := ...

Indicates the audio is running regardless of the rule state. Even if there are no active rules, audio will still be read and passed to the engine.

Value is 2 (0x2)

SRSInactive

Source

const static SpeechRecognizerState SRSInactive := ...

The engine and audio input are inactive and no audio is being read, even if there are rules active. The audio device will be closed in this state.

Value is 0 (0x0)

SRSInactiveWithPurge

Source

const static SpeechRecognizerState SRSInactiveWithPurge := ...

Indicates the engine state is set to inactive and all active audio data is purged. This state is used when an application wishes to shut an engine down as quickly as possible, without waiting for it to finish processing any audio data that is currently buffered.

Value is 3 (0x3)

fromStr

Source

static new fromStr(Str name, Bool checked := true)

Return the SpeechRecognizerState instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

vals

Source

const static SpeechRecognizerState[] vals := ...

List of SpeechRecognizerState values indexed by ordinal