Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Browser.SetOutputToWaveStream Method
Assigns an audio stream in .WAV format as output of the speech synthesizer.
Namespace: Microsoft.Speech.VoiceXml
Assembly: Microsoft.Speech.VoiceXml (in Microsoft.Speech.VoiceXml.dll)
Syntax
'Declaration
Protected Sub SetOutputToWaveStream ( _
audioOutput As Stream _
)
'Usage
Dim audioOutput As Stream
Me.SetOutputToWaveStream(audioOutput)
protected void SetOutputToWaveStream(
Stream audioOutput
)
Parameters
- audioOutput
Type: System.IO.Stream
A stream instance connected to an audio target in .WAV format
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when the SetOutputToWaveStream(Stream audioOutput) method is called on a Browser instance that is running. |