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.
Which programming language is this actually
how can i change the voice male/female
it works like a boss
It work fine when I wrote in english . Is there a way to change the language so I could do the same thing in french. I’ve tried to write in french but the conversion was beyond understanding…
I have Window 7 in french…
Whoa dude, Char 14?!?
Wrong again. Look at my other post. It is in the Vocals section.
Actually, Paritosh is wrong. If you go into the running programs, (make sure the script is running) you will see at the bottom or mid-tween (just look) a program with .vbs (Don’t run any other scripts.) So, if it’s running, go into your system prefs & find vocal (depends on model) and click on it and reduce the MAX SPEED. Hope it helped, we r probably working on diff computers here.
I have line 2 char 2, that doesn’t sound right at all. I must have the script wrong.
It is a script file (vbs) so there is no maximum characters.
Hi, I am having the same problem. Check out my post above and look at the image attached. Please reply if that is what it looked like. Thanks! 🙂
When I opened it, it showed the box and everything, but then I typed in some text, and when I clicked OK, this box immediately popped up. (Shown in image attached.)
Everytime i click OK it just goes off.
It worked perfect for me Thnxs
Do you know of a way to do this within notepad so you can keep typing long messages but have it play read out entire sentences?
itx seemx u knw much abut computer.i wil be glade if u cn teach me
Hi I`am Krishna I just want know how did yoou know this please tell me the truth.
same problem
how to pendrive bootable
same problem I am facing…
Hi,
I am using windows 7 and this trick to change into audio devices is not working.
what should I do know???
I found out how to make a pre-saved message.
just delete: <<<<<<<<>>>>>> from the code and replace it with : msg=”Whatever you want”.
Ohhh and to make it funnier just add the word “do” (without quotes) at the first line before writing the code and at the last line the word: loop
can you change the language on the audio so you type in one language and the audio is a different one
would there be a way to add on another box once you press ok, instead of it closing?
Never tried it. Give it shot and let us know if it does work 🙂
We’ll be happy to include it here!
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?
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
No idea, I did not try going to extreme 😉 Though, if you do so please share it with me.
what is the maximum letters that can we enter to the converter?
reely works.keep posting
KOOL!!!!!!!!!……….
Fool? It’s a valid trick not known to people other than from computer background. And please mind your language buddy.
dont make fool of odrs by writing visual basics programs here
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.
There’s no way to do that.
How can i decrease the the speed so i can listen properly. Its is working very fast.
k i got it!its sooo coool!
i typed in something and nothing happened!what exactly shud happen?
Sorry i didn’t get you 🙁
You can’t change the voice.
how do u extend the word limit ????? HELP
POST ON THIS SITE
retype all Quotes (“”) then it WIll work
how do you change the voive
Yeah it is! Nifty utility to hear text files in emergency 🙂
Very cool and thanks, especially for the Text to audio converter. That thing is just amazing.
Maybe it was the computer I was using.
where does the output file gets saved??
It worked for me
I tried this code and it worked for me. Make sure you copy this code directly to notepad. And do try it again.
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: [email protected])
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 =-.
Its a visual basic file and it uses basic text to speech converter of windows.
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