World changes day by day!

Monday, November 28, 2011

Text to speech from computer without software[Hack]

7 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!!!

7 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
  4. This is very useful information shared here. Thank you for sharing it. 99th.co.in

    ReplyDelete
  5. Very useful information. Thank you for sharing it. Thanks 99th.in

    ReplyDelete

Leave Your comments