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