Raised when the voice of the SpeechSynthesizer changes.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Event VoiceChange As EventHandler(Of VoiceChangeEventArgs) |
Visual Basic (Usage) |
---|
Dim instance As SpeechSynthesizer Dim handler As EventHandler(Of VoiceChangeEventArgs) AddHandler instance.VoiceChange, handler |
C# |
---|
public event EventHandler<VoiceChangeEventArgs> VoiceChange |
Remarks
For information about data associated with the event, see VoiceChangeEventArgs.
You can change the voice in use by the SpeechSynthesizer with any of the PromptBuilder's StartVoice()()()() methods or the SpeechSynthesizer's SelectVoice(String) or SelectVoiceByHints()()()() methods.