AudioSignalProblemOccurredEventArgs..::..AudioPosition Property |
AudioSignalProblemOccurredEventArgs Class See Also Send Feedback |
Gets the position in the input device's audio stream that indicates where the problem occurred.
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 AudioSignalProblemOccurredEventArgs Dim value As TimeSpan value = instance.AudioPosition |
C# |
---|
public TimeSpan AudioPosition { get; } |
Property Value
Type: System..::..TimeSpanThe location in the audio input stream 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).