Web Analytics
Take a Tour of Windows Guides on www.mintywhite.com   Tour    Why Should You Subscribe to this Site   Why Subscribe?    Download a copy of Windows Vista - the Pocket Guide   Free Vista Books    Get the mintywhite Windows Guides toolbar for your browser   Toolbar   Donate a Dollar to Pay for Next Year’s Web Hosting

Get Your Computer to Say What You Type [HowTo]

Windows Vista Guides, Windows XP Guides Add comments

Get Your Computer to Say What You Type

Windows comes with a built in voice system, which I wanted to utilize recently. In this guide, you’ll learn a Visual Basic script that is only a few lines, which will give you a popup box you can use to type in anything you want your computer to say.

This script utilizes Microsoft’s speech API, which is installed on most Windows XP, Vista, and Seven installations; if this guide does not work, you do not have the SAPI.

Speak to me!

Copy the following text and paste it into Notepad


Dim message, sapi
message=InputBox("What do you want me to say?","Speak to Me")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message

Save the file as ‘speak.vbs‘ (be sure to include the .vbs)

Now double click on speak.vbs and you’ll see an input box. Type in your message, press enter, and listen to your computer speaking.

Get Your Computer to Say What You Type 1

If this Doesn’t Work…

You’ve probably run in to one of two problems:

1. Your displays the quotation marks differently. Go back to the Notepad file and replace all the quotes (”). Save the file and try again.

Get Your Computer to Say What You Type 2

2. You do not have the SAPI installed on your computer, so this will not work (very unlikely as this comes with Windows, but if you have a custom/pirate version this may be the case.)

Further Reading:

Take a Tour of Windows Guides on www.mintywhite.com   Tour    Why Should You Subscribe to this Site   Why Subscribe?    Download a copy of Windows Vista - the Pocket Guide   Free Vista Books    Get the mintywhite Windows Guides toolbar for your browser   Toolbar   Donate a Dollar to Pay for Next Year’s Web Hosting

18 Responses to Get Your Computer to Say What You Type [HowTo]

Avatar

Angie

Oh my gosh! It worked really well! This is sort of like the ‘text to speach’ translator I have on my site for WebTV users. It includes four different voices to choose from.

Really neat! Thanks, Rich!

Avatar

Gloria

VERY COOL!

Avatar

aicorp

This is a cool little VB script. It worked for me.

Avatar

kr

it works.

Avatar

Pradeep

It works. It can also be done by accessing control panel–Sounds,speech…—Speech. In the “speech property” box select the ‘text to speach’ tab. You can figure out the rest. You can even change voices there.

Avatar

Sonsum

If you have Ubuntu, you can use a program called Festival to do the same.

Avatar

vk

osx is easier in doing this

and

has had it 4 a while

Avatar

Rick

Pretty cool. Thanks for sharing.

Avatar

Rod

Cool! Worked for me!

Avatar

bolton

this is already on all windows computers…no need for a code! lame!!

Avatar

Mark

ha ha.
Just like on the Amiga I had 15 years ago.

Avatar

nick

awesome, it works perfect

Avatar

d**kweed

MEHHHH! my OS is best it did it 10 years ago with 6 voices in 10 languages! plus it s**ks me off! top that s**t posers!

f*****g fanboy homos.

Avatar

rahul

Just four lines of code and its working perfectly..Superb

Avatar

sam

@bolton

this is already on all windows computers…no need for a code! lame!!

yeah, but this is another way to access it.

@d**kweed
f*****g fanboy homos.

@vk

osx is easier in doing this

and

has had it 4 a while

but thats not the point!

Avatar

penis burger

i never knew having may computer say penis burger would bring such enjoyment…well ok i lie, i did know that, but stubling on sites like this just make me do it again..yey

Avatar

KageTora

Wonderful! My family thought I was on MSN with Steven Hawking!

Avatar

l

for the apple fanboys, osx was released in 2001 and xp was released several months later but Microsoft’s speech API has been included since windows98 after the applefad is over and you are tired of spending 4 times what a computer is worth and tired of jobs dictating what you can and cannot use your overpriced piece of sh1t mac to do. then you will all be annoying windows fanboys again….

Trackbacks (Trackback URL)

    Comment Form

    If you have a computer help question, click here to leave it on the forums instead.