Pages

30 Oct 2013

Unleash The Power Of Windows Notepad As A Text-To-Audio Converter

We believe the invention of Notepad is one of the greatest thing in Windows OS, If I am not wrong we mentioned in previous post that Notepad is available in every Windows OS starting from its first version.

We can do lot of things to play with Notepad. Whereas I recommends to start your computer programming or coding career from Notepad itself.


Believe me or not Notepad is a powerful tool. Today we will learn how to unleash the power of Notepad as a Text-to-Audio Converter. Previously we had teach how to use Notepad as a Diary.


Script

Dim msg, sapi
msg=InputBox("Enter Your Text for Conversion. Hit OK.","Fusiq Text-To-Audio Converter 1.0")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg

We will be creating VBScript file. You can learn more about it on Wikipedia. Creating a VBScript file in Notepad is very simple.

  1. Create a New Text Document.
  2. Copy the above script and paste it.
  3. Save it with extension .vbs
Fantastic work! you are done. Put some text in it and hit OK. Get our Text-To-Audio Converter see how it works.

No comments :

Post a Comment