private void SayItButton_Click()

in PollyPlayer/Form1.cs [48:56]


        private void SayItButton_Click(object sender, EventArgs e)
        {
            using (var synth = new SpeechSynthesizer())
            {
                var voice = (VoiceInfo) voicesListBox.SelectedItem;
                synth.SelectVoice(voice.Name);
                synth.Speak(speechTextBox.Text);
            }
        }