Assigns a specific audio stream as the output of the speech synthesizer.
Namespace:
Microsoft.Speech.VoiceXml
Assembly:
Microsoft.Speech.VoiceXml (in Microsoft.Speech.VoiceXml.dll)
Syntax
C# |
---|
protected void SetOutputToAudioStream( Stream audioOutput, SpeechAudioFormatInfo audioOutputFormat ) |
Parameters
- audioOutput
- Type: System.IO..::..Stream
The specific stream that will receive the output of the speech synthesizer.
- audioOutputFormat
- Type: Microsoft.Speech.AudioFormat..::..SpeechAudioFormatInfo
The format of the audio in the output stream.
Exceptions
Exception | Condition |
---|---|
System..::..InvalidOperationException | Thrown when the SetOutputToAudioStream(Stream audioOutput, SpeechAudioFormatInfo audioOutputFormat) method is called on a Browser instance that is running. |