Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Browser.SetOutputToAudioStream Method
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
'Declaration
Protected Sub SetOutputToAudioStream ( _
audioOutput As Stream, _
audioOutputFormat As SpeechAudioFormatInfo _
)
'Usage
Dim audioOutput As Stream
Dim audioOutputFormat As SpeechAudioFormatInfo
Me.SetOutputToAudioStream(audioOutput, _
audioOutputFormat)
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 |
---|---|
InvalidOperationException | Thrown when the SetOutputToAudioStream(Stream audioOutput, SpeechAudioFormatInfo audioOutputFormat) method is called on a Browser instance that is running. |