/// <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); }
private void Synth_VoiceChange(object sender, VoiceChangeEventArgs e) { propertyGrid1.SelectedObject = synth.Voice; WriteLine("\r\nVoice changed!"); }
/// <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); }