SpeechSynthesizer.StateChanged 活動
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當狀態 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 方法。