Follow me on Twitter : @bamnablog

Sunday, April 5, 2009

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.
Now open the saved file, input the text and press ok."

u will hear what u typed J

this works in xp,may be in vista also.


Post a Comment

Related Posts Plugin for WordPress, Blogger...