/// <summary>
 ///     Handles the <see cref="SpeechSynthesizer.VoiceChange" /> event of the <see cref="Synthesizer" />.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Speech.Synthesis.VoiceChangeEventArgs" /> instance containing the event data.</param>
 private void Synthesizer_VoiceChange(object sender, VoiceChangeEventArgs e)
 {
     this.SynthesizerVoiceChange?.Invoke(this, e);
 }
Beispiel #2
0
 private void Synth_VoiceChange(object sender, VoiceChangeEventArgs e)
 {
     propertyGrid1.SelectedObject = synth.Voice;
     WriteLine("\r\nVoice changed!");
 }
Beispiel #3
0
 /// <summary>
 ///     Handles the <see cref="SpeechSynthesizer.VoiceChange" /> event of the <see cref="Synthesizer" />.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Speech.Synthesis.VoiceChangeEventArgs" /> instance containing the event data.</param>
 private void Synthesizer_VoiceChange(object sender, VoiceChangeEventArgs e)
 {
     this.SynthesizerVoiceChange?.Invoke(this, e);
 }