SetInputToAudioStream Method

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

Assigns a specific audio stream as the input for the speech recognition engine.

Namespace:  Microsoft.Speech.VoiceXml
Assembly:  Microsoft.Speech.VoiceXml (in Microsoft.Speech.VoiceXml.dll)

Syntax

C#
protected void SetInputToAudioStream(
	Stream audioSource,
	SpeechAudioFormatInfo audioSourceFormat
)

Parameters

audioSource
Type: System.IO..::..Stream
The specific stream that will be the input for the speech recognition engine.
audioSourceFormat
Type: Microsoft.Speech.AudioFormat..::..SpeechAudioFormatInfo
The format of the audio in the input stream.

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionThrown when the SetInputToAudioStream(Stream audioSource, SpeechAudioFormatInfo audioSourceFormat) method is called on a Browser instance that is running.

See Also