Web Development

Windows Text to Speech Convertor: Try at Home

Ever wondered about one great thing in windows which can amaze you? Well here is one for you 🙂

Try to do the following steps, and you will see a perfect example of text to speech convertor:

  1. Open notepad and put the following code into it:
    Dim msg, sapi
    msg=InputBox("Enter your text","Talk it")
    Set sapi=CreateObject("sapi.spvoice")
    sapi.Speak msg
  2. Save the file as “text2speech.vbs” , remember its not .txt but .vbs. Make sure you do not save it as text2speech.vbs.txt
  3. Double click the file and a box will appear. It will ask you for some text.
  4. Enter any text you want to test. For instance enter your name.
  5. Hit enter and thats it. You just saw a perfect example of text to speech convertor.

Enjoy.

3 Cheers for Bill Gates
Note: Tested only on Win XP, I haven’t tested this on Vista yet.

Digg it and share with friends if you liked this post.
Thanks

38 thoughts on “Windows Text to Speech Convertor: Try at Home

  1. Hehe, yaa would have made BTP’s of many so easy. Our professors wouldn’t have come across this ever and they would have always thought that , we have just made an absolute text to speech convertor 😛

  2. Nice..I never knew this thing existed! Would have made my internship work so much easier, if I had known.. 🙂

  3. Hehe, yaa would have made BTP’s of many so easy. Our professors wouldn’t have come across this ever and they would have always thought that , we have just made an absolute text to speech convertor 😛

  4. Hi Somu,

    Well you can try next time you visit my place, or back home 😛

    Try inputting lyrics to a song and see what happens 😛 😀

  5. hehe koi master nahi hai be, I see it somewhere else, find it worth sharing so blog it. College se aabhi tak poori life copy paste hai 😛

  6. Yes basically it uses the same thing but through a script. I guess windows > control panel > speech and this script are one and the same thing. 🙂

  7. I’d love to put it up with my website (still under construction).

    Is there an asian language version of this? it would really be helpful for studying other languages having this as a tool, right?

  8. Hi,

    Yeah surely this is a very useful tool, but unfortunately all depends upon the version of Windows XP which you have.

    I am not sure about this, but I guess it depends on language pack which you choose while installing your windows. If you choose a language other than english while installing windows, i guess you will have the conversion in that language.

    Not sure though, just a guess.

  9. I’d love to put it up with my website (still under construction).

    Is there an asian language version of this? it would really be helpful for studying other languages having this as a tool, right?

  10. Hi,

    Yeah surely this is a very useful tool, but unfortunately all depends upon the version of Windows XP which you have.

    I am not sure about this, but I guess it depends on language pack which you choose while installing your windows. If you choose a language other than english while installing windows, i guess you will have the conversion in that language.

    Not sure though, just a guess.

Leave a Reply