StateChanged Event

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Raised when the state of the SpeechSynthesizer changes.

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

Syntax

Visual Basic (Declaration)
Public Event StateChanged As EventHandler(Of StateChangedEventArgs)
Visual Basic (Usage)
Dim instance As SpeechSynthesizer
Dim handler As EventHandler(Of StateChangedEventArgs)

AddHandler instance.StateChanged, handler
C#
public event EventHandler<StateChangedEventArgs> StateChanged

Remarks

The SpeechSynthesizer raises this event when its speaking State changes. For information about data associated with the event, see StateChangedEventArgs.

To pause and resume speech synthesis, use the Pause and Resume methods.

See Also