Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SpeechSynthesizer.StateChanged Event
Raised when the state of the SpeechSynthesizer changes.
Namespace: Microsoft.Speech.Synthesis
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
Public Event StateChanged As EventHandler(Of StateChangedEventArgs)
'Usage
Dim instance As SpeechSynthesizer
Dim handler As EventHandler(Of StateChangedEventArgs)
AddHandler instance.StateChanged, handler
public event EventHandler<StateChangedEventArgs> StateChanged
Remarks
The SpeechSynthesizer raises this event when its speaking State changes. For an example and information about data associated with the event, see StateChangedEventArgs.
To pause and resume speech synthesis, use the Pause and Resume methods.