First, create a form; add the following controls to it:
TextBox. Set the name as txtText, and Multiline property to True.
Button. Name it as btnRun, Caption Run.
In the project explorer, right click on references. Click on the COM tab. choose Microsoft Speech Object Library, then click ok.

Add the following code to your form:
using SpeechLib;
and the btnRun_Click event:
private void btnRun_Click(object sender, EventArgs e)
{
SpVoiceClass v;
v = new SpVoiceClass(); // create SpVoiceClass instant
v.Rate = 1;// set rate as 1
v.Speak(txtText.Text, SpeechVoiceSpeakFlags.SVSFlagsAsync); // text to speech
}
Happy coding!




