Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SpeechSynthesizer.VoiceChange Event
Raised when the voice of the SpeechSynthesizer changes.
Namespace: Microsoft.Speech.Synthesis
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
Public Event VoiceChange As EventHandler(Of VoiceChangeEventArgs)
'Usage
Dim instance As SpeechSynthesizer
Dim handler As EventHandler(Of VoiceChangeEventArgs)
AddHandler instance.VoiceChange, handler
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.