To Download the Source Code Click Here > Text to Voice.rar

 It is very easy to convert the text to voice in VB.Net.

  1. Open Visual Studio and Click on New Project Windows form Template.
  2. Place a Text box control from toolbox to Form and set its Multiline properties to "True".
  3. Place a Button Control from toolbox to Form and set its Text Properties to "Speak". 
  4. place a NumericUpDown Control from the toolbox to the form and set its Maximum Properties to "25" and Minimum Propertied to "-25".
  5. Right click on the Form and Click on View Code.
  6. 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)

    End Sub
End Class



Help From : http://www.visualbasicscript.com/m63061.aspx

To Download the Source Code Click Here >Text to Voice.rar

0 comments:

Post a Comment