VB2010 - Computer Voice

Webnode

Hello, 
Today I'll teach you how to use visual basic 2010 to make your computer speak.

 

1. Open a new project and call it 'Speech'
2. Add a textbox and a button:

3. Click the 'Speak' button and add the following codes:

 Dim speech = CreateObject("Sapi.Spvoice")
 Dim line As String = TextBox1.Text
 speech.Speak(line)

 

Press F5 and test your program !

Source codes:Speech.zip (65,4 kB)


Webnode

Topic: VB2010 - Computer Voice

Date: 30/10/2012

By: Frans

Subject: Doesn't Work

the program doesn't work..

Reply

—————

Date: 27/07/2012

By: User

Subject: Link

Link to source code Speech.zip not work ;/

Reply

—————