How to convert text into speech using Notepad
This post will teach you how convert the input text to speech using Microsoft’s inbuilt speech software by importing it using notepad.T his is a really simple notepad tweak. Its pretty fun. Just follow the given instructions and you will be able to do what the title mentions.
Step 1 : Copy the following code and paste it into a notepad.
Dim msg, sapi
msg=InputBox(“Enter your text for audio conversion–www.coolpctips.com from Pranay Kotapi”)
Set sapi=CreateObject(“sapi.spvoice”)
sapi.Speak msg
Step 2: Next save it as “audio.vbs”. (Make sure it ends with a .vbs extension)
Step 3: Run it and enter the text and listen to the converted speech.
That’s it as simple as that. Hope you guys enjoyed this post. Stay subscribed to catch up with more of our updates. Thanks for reading.
Hey man, thanks for this trick. it did not work on text file, how ever i open visual basic and posted that code there and thus i got the desired application. Well my question is, can we change voice as well? i mean this is female voice, so how to get male voice?
Thanks and i will read more posts on your blog. it looks gr8 🙂
This code just imports the standard voice files that are present in your windows most common voice is “Microsoft Sam” . If you can access the windows files and browse through you can add any voice present in your system…just change “sapi.spvoice” to your available voices present in your windows directry. Just remember you need the voice files in your system.
Yes! Its working, thank you for the tip.
Anytime bud..thanks for reading.
Some truly nice and useful information on this internet site , likewise I believe the style and design has got excellent features.