Saturday, May 15, 2010

Make your PC talk

Open a text file in notepad and write:

Dim msg, sapi
msg=InputBox("Enter your text","Talk it")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg

Save the file with a (*.vbs) extension, it will create a VBScript File.
It will prompt you for a text when u open the file, input the text and press ok."

you will hear, what you typed

this works in xp,may be in vista also.

enjoy!!!

0 comments:

Post a Comment

 
 

Blogger