how to convert text into spech in visual basic 2010






Is a Keynote by Next Week Possible? Find Out How.


hi guys today I will show you how to make a text to speech program in visual basic .
this is the code:
Public Class Form1
Dim sapi

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
sapi = CreateObject(“sapi.spvoice”)
sapi.speak(TextBox1.Text)
End Sub
End Class