Create Text To Speech Application with DOS Prompt


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 & hear the sound.

0/Post a Comment/Comments

Please write here your valuable comment.

Previous Post Next Post