Home > DeveloperSection > Articles > Text to Speech in CSharp .NET

Text to Speech in CSharp .NET

C# C# 
0 Comment(s)
 5344  View(s)
Rate this:

Text to Speech in C#.Net

Here I’m about to explain Text to Speech feature of C#. This simple example will demonstrate how to use Text to Speech feature of C#.


                            Form Design


Namespace for voice

using SpeechLib;


namespace TextTospeech


    public partial class Form1 : Form


        public Form1()





        private void btnSpeak_Click(object sender, EventArgs e)


//creating instance of voice

            SpVoice v = new SpVoice();

//Setting Rate of voice

            v.Rate = 2;

//calling speak() method of SpVoice class.

            v.Speak(rtxtSpeech.Text, SpeechVoiceSpeakFlags.SVSFPurgeBeforeSpeak);




Don't want to miss updates? Please click the below button!

Follow MindStick