Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Browser.SetInputToWaveFile Method

Assigns a specific .WAV format audio file as input to the speech recognition engine.

Namespace:  Microsoft.Speech.VoiceXml
Assembly:  Microsoft.Speech.VoiceXml (in Microsoft.Speech.VoiceXml.dll)

Syntax

'Declaration
Protected Sub SetInputToWaveFile ( _
    audioInputPath As String _
)
'Usage
Dim audioInputPath As String

Me.SetInputToWaveFile(audioInputPath)
protected void SetInputToWaveFile(
    string audioInputPath
)

Parameters

  • audioInputPath
    Type: System.String
    The path to the .WAV file to be used as input.

Exceptions

Exception Condition
InvalidOperationException

Thrown when the SetInputToWaveFile(string audioInputPath) method is called on a Browser instance that is running.

See Also

Reference

Browser Class

Browser Members

Microsoft.Speech.VoiceXml Namespace