Pages

Saturday 27 April 2013

how to make notepad speak whatever you write.

Do you want to listen the speech which was written in text format? Then you have to make a text to audio converter. You can make it easily by writing some commands into notepad. The commands are given below.
Just copy the commands and paste it into notepad. Give the notepad any name.vbs (e.g. Speak.vbs), Save as type: All Files and Save it.



1.Open notepad

2.Write the following code and save that file with "Anyname.vbs"

3.

Dim msg, sapi

msg=InputBox("Enter your text","My Talking Software")

Set sapi=CreateObject("sapi.spvoice")

sapi.Speak msg
4.
double click on the file you save and write anything (in English) into the box and click OK. 
5.
see the magic.

No comments:

Post a Comment