Last time i shared a notepad trick using which you can format your hard disk. If you haven’t tried that do it now, here is the link :
Format Your Hard Disk Using Just Notepad !!
In this post i am going to share a similar notepad trick using which you can convert any text to audio with just a click. And it doesn’t even require you to pay for software or install any 3rd party software on your PC.
How To Do It ?
- Open Notepad file on your Windows PC.
- Copy and paste the below mentioned code :
Dim msg, sapi
msg=InputBox("Enter your text for conversion–www.techvorm.com","TechVorm Text-To-Audio Converter")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg
- Save this file with any name with .vbs as extension. For eg. Text-To-Audio.vbs
Thats it ! Your Text to Audio converter is ready to be used. Now open the saved file and key in the text you want to convert and click OK. If you find any difficulties in using this code, let me know via comments section.

Is there any other voices we can choose from? or a way to make it speak more slowly?
its not working….
activex component cant create object is showing….
and also microsoft vbscript runtime error…
i m working on w7 premium….
how can i change this so it doesn’t speak out loud what the person has typed but instead a pre-chosen message?
how to save that audio
what is the maximum letters that can we enter to the converter?
No idea, I did not try going to extreme
Though, if you do so please share it with me.
KOOL!!!!!!!!!……….
reely works.keep posting
dont make fool of odrs by writing visual basics programs here
Fool? It’s a valid trick not known to people other than from computer background. And please mind your language buddy.
I tried this..but nothinh is happening,,its simply opening the same code…..:-(
It is outstanding,i tried and it is extremely supperb…
Dosn’t work: line 3 char 1= (can’t create object)
this is just a simple vb code…..:)
if you all know you can do same thing from
control pannel > sounds, speech and Audio Devices > Speech
Just type the text their and click on Preview Voice button
you can also control speed of the voice from that window.
How can i decrease the the speed so i can listen properly. Its is working very fast.
There’s no way to do that.
i typed in something and nothing happened!what exactly shud happen?
k i got it!its sooo coool!
how do u extend the word limit ????? HELP
POST ON THIS SITE
Sorry i didn’t get you
retype all Quotes (“”) then it WIll work
how do you change the voive
You can’t change the voice.
Very cool and thanks, especially for the Text to audio converter. That thing is just amazing.
Yeah it is! Nifty utility to hear text files in emergency
where does the output file gets saved??
Hey!
Look like a cool trick!
I just tried it but it didn’t work.
Instead, a pop up appeared and said this:
Script: (drives and the file)
Line: 2
Char: 14
Error: Invalid character
Code: 800A0408
Source: Microsoft VBSScript compilation error
I just copied and pasted…and did nothing. So I don’t think it was me….was it?
(My Email if you need it…I’m new to this site lol: Nintendo_Master_Returns@live.com)
I tried this code and it worked for me. Make sure you copy this code directly to notepad. And do try it again.
It worked for me
Maybe it was the computer I was using.
Cool one! Just defining the source to an already present file.
I like it. I never knew that such a file existed.
.-= Rohit Sane´s last blog ..Cool and Funky T-Shirts with Quotes for Girls and Boys =-.
This one is good..waise what language u have used..and hwta type of file extension is .vbs..i have heard it before some times..mostly in viruses kind of..i know this is not virus..just mentioning the mention of .vbs..:D
Its a visual basic file and it uses basic text to speech converter of windows.
How about if you want to pre-save the text so that when one clicks the file they can hear what you have to say?
Never tried it. Give it shot and let us know if it does work
We’ll be happy to include it here!