To Download the Source Code Click Here > Text to Voice.rar
It is very easy to convert the text to voice in VB.Net.
- Open Visual Studio and Click on New Project Windows form Template.
- Place a Text box control from toolbox to Form and set its Multiline properties to "True".
- Place a Button Control from toolbox to Form and set its Text Properties to "Speak".
- place a NumericUpDown Control from the toolbox to the form and set its Maximum Properties to "25" and Minimum Propertied to "-25".
- Right click on the Form and Click on View Code.
- And type the following code.
Public Class Form1
Private Sub btnSpeak_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSpeak.Click
Dim Speak As Object = CreateObject("SAPI.SPVOICE")
'Pitch has a range of -25 to 25
Speak.Speak(txtMessage.Text, 1)
'Pitch has a range of -25 to 25
Speak.Speak(txtMessage.Text, 1)
End Sub
End Class
Help From : http://www.visualbasicscript.com/m63061.aspx
To Download the Source Code Click Here >Text to Voice.rar