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
)

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 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft