SpeechRecognizer AllowAudioInputFormatChangesOnNextSet Property

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Object: ISpeechRecognizer
Type: Hidden

AllowAudioInputFormatChangesOnNextSet Property


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.


Syntax

Set: SpeechRecognizer.AllowAudioInputFormatChangesOnNextSet = Boolean
Get: Boolean = SpeechRecognizer.AllowAudioInputFormatChangesOnNextSet

Parts

SpeechRecognizer
The owning object.
Boolean
Set: A Boolean variable that sets the property.
Get: A Boolean variable that gets the property.

Example

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