SpeechRecognitionEngine.RequestRecognizerUpdate Method (Object, TimeSpan)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Requests that the recognizer pauses to update its state and provides an offset and a user token for the associated event.

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

public void RequestRecognizerUpdate(
	object userToken,
	TimeSpan audioPositionAheadToRaiseUpdate
)

Parameters

userToken
Type: System.Object

User-defined information that contains information for the operation.

audioPositionAheadToRaiseUpdate
Type: System.TimeSpan

The offset from the current AudioPosition to delay the request.

The recognizer does not initiate the recognizer update request until the recognizer's RecognizerAudioPosition equals the current AudioPosition plus audioPositionAheadToRaiseUpdate.

When the recognizer generates the RecognizerUpdateReached event, the UserToken property of the RecognizerUpdateReachedEventArgs contains the value of the userToken parameter.

.NET Framework
Available since 3.0
Return to top
Show: