Tuesday, October 28, 2008

How to make your PC Talk

This is so cool I have to post it even if it's off topic..

Open a text file in notepad and type:

Dim msg, sapimsg=InputBox("Enter your text","Talk it")Set sapi=CreateObject("sapi.spvoice")sapi.Speak msg

Save the file with a (*.vbs) extension, it will create a VBScript File.It will prompt you for a text when you open the file, input the text and press ok."you will hear what you typed

This works in XP. I don't know about Vista.

The computer speaks perfect English. Albeit in a cyborgish kind of way.

You can change the speech rate by separating syllables.

No comments: