PC-2009

Tuesday, April 14, 2009

How to Create Text To Speech Application

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.

1 comment: