Search This Blog

Wednesday 25 July 2012

How to Make Your Computer Speak

Today I will discuss an amazing trick. This trick will make your computer speak. You must be now thinking how is it possible computers cannot talk. Just read the following article and you will come to know that computers can speak. To make your computer speak just follow these 2 simple steps.

Step 1:
If you are using Windows XP then you need to do this else directly go to step 2. Open start and then click on control panel. In control panel open sound option and selct speech and enable speech Option. You can check other settings and sound options according to you after doing it just click ok to apply the changes.
Step 2 :Open notepad and type following code in it :
Dim message, sapi

message=InputBox("Enter the text you want spoken", "Speak This")

Set sapi=CreateObject("sapi.spvoice")

sapi.Speak message
Now save the notepad file as speak.vbs or any name you feel like but remember extension should be .vbs else the code will not work. After saving it, double click on speak.vbs and write what ever you want computer should speak and press enter. All sentences which you will type in the box, computer will speak them out.

No comments:

Post a Comment