when the project is created you have to add a reference to the System.Speech.dll under .NET Tab.

Now design the windows form with the following controls

ComboBox control(cmbInstalled) - to list all available installed voices

Button Control(btnStart) - To starting the Text-to-Speech

Button Control(btnEnd) - To stop the Text-to-Speech

Track Bar control(btnRate) - to control the Text-to-Speech speed rate.

Trach Bar Control( btnVolume)- to control the Text-to-Speech control volume.

The Speed rate should be a number between -10 and 10 values. A normal rate is -1 and the volum between 0 and 100.

So Assign the btnVolumn Trackbar control Minimum and Maximum properties to 0 and 100 and the btnRate trackbar control minimum and maximum properties to -10 and 10.

Default set to btnVolumn Value properties to 50 and btnRate value properties to -1.

Create a new instance of a SpeechSynthesizer under namespace System.Speech.Synthesis. This class have the properties and methods that can start, stop and control audio activites specified text. Need to add the Imports statements are

Imports System.Speech.Synthesis

Imports System.Collections.ObjectModel

and declare the below line as private or public

Private p_objSynth As New SpeechSynthesizer

Next write a method which retrieves a list of installed voices are in local system. By default, Windows Xp available voices are (LH Michael(Gents voice),LH Michelle(Women voice),Microsoft sam(Gents voice)). This voice recognizes English words, punctuation and grammar rules. If you want to more voices , installed valid voices.

p_objSynth.GetInstalledVoices() method retrieving a list of all installed voices and returns a ReadOnlyCollection of InstalledVoice objects

Handle Volume and Speed Rate for SpeechSynthesizer

Volume

Write code for handle volume and speed rate changes,earlier mentioned above volume must be a number between 0 and 100. Mention number becomes the value for the Volume property of the active SpeechSynthesizer class instance.The user changes the position of the slider in the volumeTrackBar control to raised the valueChanged event

Hi. Your article was very useful to our project. However, this code is useful when creating a project and when i tried implementing the same in a website, it didn't work! I'm having trouble figuring it out. Can you please help? I'm using VS 2008.