How to make the computer talk from any batch file

It is possible to make the computer talk by a batch file or any windows program. All is needed is a tiny VBScript file that use Microsoft Speech API OLE Object. Also all sentences passed to the command must be surrounded with quotes. Otherwise it will not sound the best.

You may download, copy, modify the VBScript file.

' delphijustin Say v1.0
' Website https://delphijustin.biz
Set sentences = Wscript.Arguments
if sentences.Count=1 then
if sentences(0)="/?" then
Wscript.Echo "Usage: "&Wscript.ScriptName&" <messages>"
Wscript.Quit 0
end if
end if
set sapi = CreateObject("SAPI.SpVoice")
For Each sentence In sentences
  sapi.Speak sentence, 0
Next
if sentences.Count=0 then
sapi.Speak "I don't know what to say.", 0
end if

Published by Justin Roeder

I am an electronics engineer and computer programmer that has autism. I learned by myself

Join the Conversation

4 Comments

  1. This is awesome! I wish I had found this sooner.

    Maybe it would be useful to look into using lawn care services to get your
    backyard more interesting? This content is too cool
    to be unseen by anyone!

  2. I have learned some essential things through your site post.
    One other poit I would like tto say is that there are lots oof games available and
    which aree designed especially for toddler age kids.
    They include pattern acknowledgement, colors, creatures, and styles.
    These commonly focus on familiarization as opposed to memorization. This
    helps to keep little ones engaged without having a sensation ike they arre learning.
    Thanks

Leave a comment

Leave a Reply to lawn care Cancel reply

Your email address will not be published. Required fields are marked *

sixteen + 3 =

All in one
Start
Amazon.com, Inc. OH Dublin
Your cart is empty.
Loading...