Partilhar via


Note

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

AudioSignalProblemOccurredEventArgs.RecognizerAudioPosition Property

Gets the recognizer audio position associated with the event.

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

Syntax

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

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

Property Value

Type: System.TimeSpan
The position in the audio input that the recognizer has received when the AudioSignalProblemOccurred event was raised.

Remarks

The AudioPosition property references the input device's position in its generated audio stream. By contrast, the RecognizerAudioPosition property references the recognizer's position within its audio input. These positions can be different. For more information, see Use Speech Recognition Events (Microsoft.Speech).

See Also

Reference

AudioSignalProblemOccurredEventArgs Class

AudioSignalProblemOccurredEventArgs Members

Microsoft.Speech.Recognition Namespace