語言

SpeechSynthesizer.StateChanged 活動

定義

當狀態 SpeechSynthesizer 變化時被提出。

public:
 event EventHandler<System::Speech::Synthesis::StateChangedEventArgs ^> ^ StateChanged;
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) 

事件類型

備註

當發聲SpeechSynthesizer改變時,這個State事件就會被提起。 有關事件相關資料的範例及更多資訊,請參見 StateChangedEventArgs。

若要暫停並繼續語音合成,請使用 Pause 與 Resume 方法。

適用於