SetOutputToAudioStream Method

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

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

ExceptionCondition
System..::..InvalidOperationExceptionThrown when the SetOutputToAudioStream(Stream audioOutput, SpeechAudioFormatInfo audioOutputFormat) method is called on a Browser instance that is running.

See Also