![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
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
Exception | Condition |
---|---|
System..::..InvalidOperationException | Thrown when the SetInputToAudioStream(Stream audioSource, SpeechAudioFormatInfo audioSourceFormat) method is called on a Browser instance that is running. |