The speech-recognition engine should have the audio source active only while it needs audio, so that if it's attached to a wave-in device, other applications that need the device will not be prevented from using it. To do this:
· Call the IAudio::Start member function only when a grammar is active and listening.
· Call the IAudio::Stop member function when all of the grammars have been deactivated or have stopped listening.