Compartir a través de


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SpeechRecognitionEngine.RecognizerAudioPosition Property

Gets the current location of the SpeechRecognitionEngine in the audio input that it is processing.

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

Syntax

'Declaration
Public ReadOnly Property RecognizerAudioPosition As TimeSpan
    Get
'Usage
Dim instance As SpeechRecognitionEngine
Dim value As TimeSpan

value = instance.RecognizerAudioPosition
public TimeSpan RecognizerAudioPosition { get; }

Property Value

Type: System.TimeSpan
The position of the recognizer in the audio input that it is processing.

Remarks

The audio position is specific to each speech recognizer. The zero value of an input stream is established when it is enabled.

The RecognizerAudioPosition property references the SpeechRecognitionEngine object's position within its audio input. By contrast, the AudioPosition property references the input device's position in its generated audio stream. These positions can be different. For example, if the recognizer has received input for which it has not yet generated a recognition result then the value of the RecognizerAudioPosition property is less than the value of the AudioPosition property.

See Also

Reference

SpeechRecognitionEngine Class

SpeechRecognitionEngine Members

Microsoft.Speech.Recognition Namespace

AudioPosition