HackingUniversity - Hacks . Tricks . How-To's

27 December 2012

How to Convert Text into Audio Using Notepad Trick


Well recently I posted an amazing trick on updating your status on Facebook in a true funky way using automatic caps on and off with the help of Notepad and some .vbs coding, well that was a fun and now I have another older post with which you can easily convert your text in audio using inbuilt windows text to audio converter feature.

So now you can easily activate this feature by adding some code to your notepad and executing it using .vbs format. So check below tutorial and have fun.

  1. Open Notepad
  2. Now add below code into your notepad.

    Dim msg, sapi
    msg=InputBox("Enter your text for conversion","HackingUniversity Text-To-Audio Converter")
    Set sapi=CreateObject("sapi.spvoice")
    sapi.Speak msg

  3. Now save this file as speech.vbs make sure the format is .vbs
  4. Now just double click on this small file and enter your text you want as audio.