Monday, February 16, 2015

Text To Speech using c#

       Hi in this blog I am going to going to explain how create a Text to Speech(TTS) application in C#.With the help of Microsoft. Speech assembly (.dll) this becomes simple and straight forward.


Let’s see how to do it.


First a create c# windows form application. And design a from like this 


Code for the speak button handler.

 private void button1_Click(object sender, EventArgs e)
        {
            SpeechSynthesizer syn = new SpeechSynthesizer();
            string str = textBox1.Text;
            syn.Speak(str);
            syn.Dispose();
        }

Download the source code from here.

Click here for my previous blog

Happy coding.



No comments:

Post a Comment