Compartilhar via


Note

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

SpeechRecognitionEngine.EmulateRecognize Method (String, EmulateOptions)

Emulates input of a phrase to the speech recognizer, using text in place of audio for synchronous speech recognition, and specifies the type of recognition operation to perform.

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

Syntax

'Declaration
Public Function EmulateRecognize ( _
    inputText As String, _
    emulateOptions As EmulateOptions _
) As RecognitionResult
'Usage
Dim instance As SpeechRecognitionEngine
Dim inputText As String
Dim emulateOptions As EmulateOptions
Dim returnValue As RecognitionResult

returnValue = instance.EmulateRecognize(inputText, _
    emulateOptions)
public RecognitionResult EmulateRecognize(
    string inputText,
    EmulateOptions emulateOptions
)

Parameters

  • inputText
    Type: System.String
    The text to use as the input phrase.

Return Value

Type: Microsoft.Speech.Recognition.RecognitionResult
Returns RecognitionResult.

See Also

Reference

SpeechRecognitionEngine Class

SpeechRecognitionEngine Members

EmulateRecognize Overload

Microsoft.Speech.Recognition Namespace

EmulateOptions