AudioPosition Property

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Gets the audio position associated with the event.

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

Syntax

Visual Basic (Declaration)
Public ReadOnly Property AudioPosition As TimeSpan
	Get
Visual Basic (Usage)
Dim instance As RecognizerUpdateReachedEventArgs
Dim value As TimeSpan

value = instance.AudioPosition
C#
public TimeSpan AudioPosition { get; }

Property Value

Type: System..::..TimeSpan

Returns the location within the speech buffer of a SpeechRecognitionEngine when it pauses and raises a RecognizerUpdateReached event.

Remarks

Applications can use the location indicated by AudioPosition to access audio input that occurred while the recognition engine was paused.

See Also