How to make talk program in batch file

Asked By 40 points N/A Posted on -

Hello Friends,

I need to know about how to make talk program in batch file, that will speak the text that is entered. Please do provide the batch file coding for that.

Thanks in Advance,

Otis Hartwell

Answered By 0 points N/A #198700

How to make talk program in batch file


Hello Otis Hartwell,

Here is the solution and it is quite simple:
1. Open notepad;
2. Copy the code below in your notepad;
3. Save the file with the  .vbs  extension.

Here goes the code:

StrText=("Here goes what you will hear")

set ObjVoice = CreateObject("SAPI.SpVoice")

ObjVoice.Speak StrText

PS: All you have to do is to change the Here goes what you will hear with any words you want to hear from your computer.

Take care!

Login/Register to Answer

Related Questions