How do I know if the microphone is enabled?

Last reviewed: 12/2/2009

HOW Article ID: H120911

The information in this article applies to:

  • SpeechKit 6

Summary

Some application scenarios may benefit by determining whether the recognizer is active. For some recognizers, this done by accessing the microphone state.

More Information

Dragon NaturallySpeaking provides a desktop microphone that applications can share. Determining the state within an application can now be down by accessing the AwakeState property.


int micState = ChantSR.GetNumberProperty(CNPAwakeState);

The CNPAwakeState property may have the following values:

Speech API CNPAwakeState Value
Dragon 0 - Microphone disabled
1 - Microphone off
2 - Microphone on
3 - Microphone sleeping
4 - Microphone paused
5 - Microphone resumed
SAPI 4 0 - Sleep
1 - Awake
SAPI 5 0 - Microphone off
1 Microphone on
SMAPI 0 - Microphone off
1 Microphone on
VoCon V2 0 - Microphone off
1 Microphone on
VoCon V3 0 - Microphone off
1 Microphone on