SpeechSynthesizer.VoiceChange 事件
定义
当 SpeechSynthesizer 的语音更改的时候引发。Raised when the voice of the SpeechSynthesizer changes.
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)
事件类型
注解
有关与事件关联的数据的示例和信息,请参阅 VoiceChangeEventArgs 。For an example and information about data associated with the event, see VoiceChangeEventArgs.
可以更改 SpeechSynthesizer 使用的任何 PromptBuilder StartVoice 方法或 SpeechSynthesizer SelectVoice 或 SelectVoiceByHints 方法的语音。You can change the voice that the SpeechSynthesizer uses with any of the PromptBuilder's StartVoice methods or the SpeechSynthesizer's SelectVoice or SelectVoiceByHints methods.