Sunday, 10 February 2013

make your computer speak


What we are going to do?

We will make a VB script and place it in Windows 7 Start up folder. There after, every time you log in, a voice will greet you after the start up sound (if enabled).

Step 1

Open Notepad. Copy paste the code written below:

Dim speaks, speech
speaks=”Welcome,ritesh”
Set speech=CreateObject(“sapi.spvoice”)
speech.Speak speaks

Now, change my name to yours inside the code. Infact, you can change and place any sentence within the quotation mark in the code. I have tested, it works fine upto 5 words. You can change the spelling, add space, punctuation etc to make it more realistic.
For example, I want to hear my name as “Oh-bhi-shake” ; so I will write there “Oh bhi shake”.
Here is the screenshot:



Now, Save it as “Greetings.vbs” (without quotes) and as I always say, change the file from text to “all files“. Save it to some location, you can remember; say Desktop. Here is screenshot of this step:


Step 2

Now, we have to place it inside the Windows Startup folder. Click the Start-Button, choose “All Programs” and you will find it as a folder named Startup. Right Click it and choose Open or Explore. (Look the address bar in the screenshot below):

Copy the VBS file you have created and paste there. You must be logged on as Admin. A security prompt will come, just accept it:



Step 3

Just restart the computer and you will hear the voice!
To disable it, just delete the file.

Leave a Reply

 
 

Labels