Compartir a través de


Note

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

SpeechRecognitionEngine.EmulateRecognize Method (RecognizedWordUnit[] , CompareOptions, EmulateOptions)

Emulates input of specific words to the speech recognizer, using an array of RecognizedWordUnit objects in place of audio for synchronous speech recognition, specifies how the recognizer handles Unicode comparison between the words and the loaded speech recognition grammars, 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 ( _
    wordUnits As RecognizedWordUnit(), _
    compareOptions As CompareOptions, _
    emulateOptions As EmulateOptions _
) As RecognitionResult
'Usage
Dim instance As SpeechRecognitionEngine
Dim wordUnits As RecognizedWordUnit()
Dim compareOptions As CompareOptions
Dim emulateOptions As EmulateOptions
Dim returnValue As RecognitionResult

returnValue = instance.EmulateRecognize(wordUnits, _
    compareOptions, emulateOptions)
public RecognitionResult EmulateRecognize(
    RecognizedWordUnit[] wordUnits,
    CompareOptions compareOptions,
    EmulateOptions emulateOptions
)

Parameters

  • wordUnits
    Type: []
    An array of word units that contains the input for the recognition operation
  • compareOptions
    Type: System.Globalization.CompareOptions
    A bitwise combination of the enumeration values that describe the type of comparison to use for the emulated recognition operation.

Return Value

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

See Also

Reference

SpeechRecognitionEngine Class

SpeechRecognitionEngine Members

EmulateRecognize Overload

Microsoft.Speech.Recognition Namespace

EmulateOptions