RosettaCodeData/Task/Speech-synthesis/Batch-File/speech-synthesis.bat

10 lines
217 B
Batchfile
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
@set @dummy=0 /*
::Batch File section
@echo off
cscript //e:jscript //nologo "%~f0" "%~1"
exit /b
::*/
//The JScript section
var objVoice = new ActiveXObject("SAPI.SpVoice");
objVoice.speak(WScript.Arguments(0));