World changes day by day!

Monday, November 28, 2011

Text to speech from computer without software[Hack]

4 comments
Do you want your computer to speak whatever you write without installing any software?
yes! but how?
With the four lines of code, one can have the computer speak whatever they type. It is by creating simple visual basic file. It will convert each typed word in the speech.
Now get started with it. Just type following lines in the Notepad and save the file with .vbs extension like "a.vbs".

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


Now close the notepad and open the created file, it will ask you to enter the text. Enter the text and hear it from your computer.

Cool!!!

4 comments :

  1. wow! That is very cool one!

    ReplyDelete
  2. hooray it is very simple and great. Know what a small piece of code can do.

    ReplyDelete
  3. @Kundan what you wan say only you know........

    ReplyDelete

Leave Your comments