SpeechRecognizer.RequestRecognizerUpdate Method (Object, TimeSpan)


Requests that the shared recognizer pause and 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


Type: System.Object

User-defined information that contains information for the operation.

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 the value of the audioPositionAheadToRaiseUpdate parameter.

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