Share via


SpeechRecognitionEngine.Recognize Method ()

Provides a single synchronous recognition operation on recognition engine input.

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

Syntax

'Declaration

Return Value

Returns a valid instance of RecognitionResult is the recognition engine has be able to recognize the input, null is recognition fails.

Remarks

Recognize performs a single recognition operation, and then terminates.

The synchronous recognition operations of Recognize do not generate any of the SpeechRecognitionEngine events, in particular RecognizeCompleted is not generated.

Recognition failure may be due either to timing out against the values of BabbleTimeout or InitialSilenceTimeout property on the current instance of SpeechRecognitionEngine, or because the recognition engine finds no matches against the Grammar that have been loaded into it.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

SpeechRecognitionEngine Class
SpeechRecognitionEngine Members
Microsoft.Speech.Recognition Namespace