Monday, July 25, 2011

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– 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. Thanks for reading.

No comments:

Post a Comment