Share via


Note

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

SpeakProgressEventArgs.AudioPosition Property

Gets the audio position of the event.

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

Syntax

'Declaration
Public ReadOnly Property AudioPosition As TimeSpan
    Get
'Usage
Dim instance As SpeakProgressEventArgs
Dim value As TimeSpan

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

Property Value

Type: System.TimeSpan
Returns the position of the event in the audio output stream.

Remarks

The SpeechSynthesizer normalizes numbers to the words that correspond to how the number will be spoken. For example, the synthesizer speaks the number “4003” as “four thousand three”. It raises a SpeakProgress event for each of the spoken words, and returns the AudioPosition for each word.

See Also

Reference

SpeakProgressEventArgs Class

SpeakProgressEventArgs Members

Microsoft.Speech.Synthesis Namespace