Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SpeechRecognizerState (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

SpeechRecognizerState Enum

The SpeechRecognizerState enumeration lists the states of a Recognizer object.


Definition

Enum SpeechRecognizerState
    SRSInactive = 0
    SRSActive = 1
    SRSActiveAlways = 2
    SRSInactiveWithPurge = 3
End Enum

Elements

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.
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.
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.
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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.