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. |