You are reading help file online using chmlib.com
|
Object: ISpeechRecognizer
Type: Hidden
The AllowAudioInputFormatChangesOnNextSet property specifies whether the recognizer can change audio input formats on subsequent audio streams.
When this property is True, recognizer's input stream format is reset to match the speech recognition engine's preferred format. When this property is False, no changes to the audio format takes place. The default value of this property is True.
The format will not actually be changed until the next time the input is set. Calls to ISpeechRecognizer.AudioInput and ISpeechRecognizer.AudioInputStream set the input.
Set: | SpeechRecognizer.AllowAudioInputFormatChangesOnNextSet = Boolean |
Get: | Boolean = SpeechRecognizer.AllowAudioInputFormatChangesOnNextSet |
The following snippet assumes a valid recognizer. The sample retrieves the current state of AllowAudioInputFormatChangesOnNextSet.
Dim Recognizer As SpSharedRecognizer
Dim fAllowFormatChanges As Boolean
fAllowFormatChanges = Recognizer.AllowAudioInputFormatChangesOnNextSet
This sample sets the current state of AllowAudioInputFormatChangesOnNextSet to False.
Dim Recognizer As SpSharedRecognizer
Recognizer.AllowAudioInputFormatChangesOnNextSet = False
You are reading help file online using chmlib.com
|