Sinisterly
Talking batch script - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: Talking batch script (/Thread-Talking-batch-script)



Talking batch script - Ambiguous - 11-01-2011

I made a small talking batch script yesterday for fun, hope you like it.

Quote:@echo off
:: Made by Ambiguous of HC
title Ambiguous' Speaking Computer
color A
:again
cls
echo Please enter what you want the computer to say.
echo.
set /p input= %variable% I want the computer to say :
echo.
echo Set Speech = CreateObject("SAPI.SpVoice") > "%userprofile%\speech.vbs"
echo Speech.Speak "%input%" >> "%userprofile%\speech.vbs"
call "%userprofile%\speech.vbs"
echo.
echo The computer has said "%input%".
echo.
pause
goto again

Offtopic : How do I make code tags?


RE: Talking batch script - 1234hotmaster - 11-01-2011

Nice code.

for the code tag:

[/code] at the end
[code] at the begining


RE: Talking batch script - Ambiguous - 11-01-2011

(11-01-2011, 05:57 AM)1234Darkmaster Wrote: Nice code.

for the code tag:

[/code] at the end
[code] at the begining

Thanks Biggrin




RE: Talking batch script - JuiceKing - 11-02-2011

It's cool.My computer can say: "Mum you're so boring! -.-" Mum:"What you say?" I:"Nothing!That's my computer!" xD Biggrin
Thanks for sharing. Biggrin