Saturday, April 11, 2009

How to Create Text To Speech Application in 2min !!

This is very cool and simple VBS application which you can prompt windows SAMake Windows TalkM to read any text you’re entering to the application.

Windows will speak everything which you have entered to the application hence we are creating.

1. First copy the below code in to a notepad

Dim msg, sapi
msg=InputBox("Enter any text and Press Ok","+++ My Talking Application +++")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg


2. And Save it as whatever+the+name+you+like.VBS (Ex. Speak.Vbs)

3. Open it via Dos prompt or simply you can right click on it and Select “Open with command prompt”

There will be a small window appear, type any text and press ok. You can hear the sound of Microsoft SAM.



I couldn’t check this in windows Vista but one of my friends told me it works perfect in vista too. If you encounter any error while trying this in vista environment feel free to comment.

0 comments:

Post a Comment