SpeechRecognizer.AudioCaptureStateChanged event
This event is raised when a change occurs in the speech recognizer's audio capture state.
Syntax
public event TypedEventHandler<SpeechRecognizer, SpeechRecognizerAudioCaptureStateChangedEventArgs> AudioCaptureStateChanged
Public Event AudioCaptureStateChanged As TypedEventHandler(Of SpeechRecognizer, SpeechRecognizerAudioCaptureStateChangedEventArgs)
public:
event TypedEventHandler<SpeechRecognizer, SpeechRecognizerAudioCaptureStateChangedEventArgs>^ AudioCaptureStateChanged {
Windows::Foundation::EventRegistrationToken add(TypedEventHandler<SpeechRecognizer, SpeechRecognizerAudioCaptureStateChangedEventArgs>^ value);
void remove(Windows::Foundation::EventRegistrationToken token);
}
Event information
Delegate | TypedEventHandler<SpeechRecognizer, SpeechRecognizerAudioCaptureStateChangedEventArgs> |
Remarks
Audio capture state indicates whether or not the speech recognizer is listening for audio input from the user. In Windows Phone 8 the only states are Capturing and Inactive. An app that uses the SpeechRecognizer class and displays a custom graphical user interface (GUI) should handle the AudioCaptureStateChanged event to determine when audio capture has completed, meaning when the state transitions from Capturing to Inactive. The app can then alert the user that the speech recognizer is "thinking". This is generally not needed for on-device speech recognition using custom grammars, but is useful when using pre-defined grammars.
For more information about how to register for the AudioCaptureStateChanged event, see the code example in the Using the RecognizeAsync method section of Starting speech recognition for Windows Phone.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
None supported |
Minimum supported phone |
Windows Phone 8 |
Namespace |
Windows.Phone.Speech.Recognition Windows::Phone::Speech::Recognition [C++] |
Metadata |
Windows.WinMD |
Capabilities |
ID_CAP_SPEECH_RECOGNITION [Windows Phone] ID_CAP_MICROPHONE [Windows Phone] ID_CAP_NETWORKING [Windows Phone] |
See also
SpeechRecognizer