SpeechSynthesizer.StateChanged 事件

定义

SpeechSynthesizer 的状态更改的时候引发。Raised when the state of the SpeechSynthesizer changes.

public:
 event EventHandler<System::Speech::Synthesis::StateChangedEventArgs ^> ^ StateChanged;
public event EventHandler<System.Speech.Synthesis.StateChangedEventArgs> StateChanged;
member this.StateChanged : EventHandler<System.Speech.Synthesis.StateChangedEventArgs> 
Public Custom Event StateChanged As EventHandler(Of StateChangedEventArgs) 

事件类型

EventHandler<StateChangedEventArgs>

注解

SpeechSynthesizer当其讲话发生更改时,将引发此事件 StateThe SpeechSynthesizer raises this event when its speaking State changes. 有关与事件关联的数据的示例和详细信息,请参阅 StateChangedEventArgsFor an example and more information about data associated with the event, see StateChangedEventArgs.

若要暂停和继续语音合成,请使用 PauseResume 方法。To pause and resume speech synthesis, use the Pause and Resume methods.

适用于