Monday, May 31, 2010

Simple Text Reader

If you're not a native speaker and would like a general audio clue as to how a word might be pronounced in English you can easily make an application for your PC to read text to you.

1. Open Notepad
2. Copy this code:

Dim msg, sapi
msg=InputBox("Enter your text","Message Box")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg
3. Paste it in Notepad.
4. Save the file with any name and the extentions ".vbs"
5. Thus, if you name it "Textspeak,"  then the filename would be "Textspeak.vbs"

Now, open the file. A dialogue box appears for you to type any text into it.
Click OK and you'll hear the text spoken in English.

Unfortunately, it will only take one short paragraph at a time. You may copy-n-paste a sentence or so to see how it basically would be pronounced in English.

No comments: