SpeechRecognizerState
SpeechRecognizerState
SpeechRecognizerState
SpeechRecognizerState
Enum
Definition
Specifies the state of the speech recognizer.
public : enum class SpeechRecognizerStatepublic enum SpeechRecognizerStatePublic Enum SpeechRecognizerState// You can use this enum in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Fields
| Capturing Capturing Capturing Capturing | Indicates that the speech recognizer is capturing (listening for) audio input from the user. Useful for providing dynamic feedback during standard or continuous recognition. |
| Idle Idle Idle Idle | Indicates that speech recognition is not active and the speech recognizer is not capturing (listening for) audio input. In this state, SpeechRecognizer.RecognizeAsync, SpeechRecognizer.RecognizeWithUIAsync, SpeechContinuousRecognitionSession.StartAsync, or SpeechRecognizer.CompileConstraintsAsync can be called. |
| Paused Paused Paused Paused | Only valid for continuous recognition. Indicates that the speech recognition session is still active, but the speech recognizer is no longer processing (attempting to recognize) audio input. Ongoing audio input is buffered. In this state, constraints can be added, removed, and compiled. If one or more constraints are specified when the recognition session is initialized, removing all constraints and resuming recognition will result in an error. Similarly, if no constraints are specified when the recognition session is initialized, adding constraints and resuming recognition will also result in an error. |
| Processing Processing Processing Processing | Indicates that the speech recognizer is processing (attempting to recognize) audio input from the user. The recognizer is no longer capturing (listening for) audio input from the user. During standard recognition, the state can occur after the recognizer has stopped capturing audio input and before a recognition result is returned. During continuous recognition, this state can occur after StopAsync has been called and before the Completed event fires. Useful for indicating that a user should stop speaking. |
| SoundEnded SoundEnded SoundEnded SoundEnded | Indicates that the speech recognizer no longer detects sound on the audio stream. Useful for hiding speech recognition UI. However, the recognition session is still active. |
| SoundStarted SoundStarted SoundStarted SoundStarted | Indicates that the speech recognizer has detected sound on the audio stream. Useful for indicating that sound (not necessarily speech) has been detected. |
| SpeechDetected SpeechDetected SpeechDetected SpeechDetected | Indicates that the speech recognizer has detected speech input on the audio stream. Useful for indicating that speech has been detected. |