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