SpeechSynthesizer.VoiceChange 事件

定义

SpeechSynthesizer 的语音更改的时候引发。

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

事件类型

EventHandler<VoiceChangeEventArgs>

注解

有关与事件关联的数据的示例和信息,请参阅 VoiceChangeEventArgs

可以更改 SpeechSynthesizer 使用的任何 PromptBuilder StartVoice 方法或 SpeechSynthesizer SelectVoiceSelectVoiceByHints 方法的语音。

适用于