RosettaCodeData/Task/Speech-synthesis/Batch-File/speech-synthesis.bat
2023-07-01 13:44:08 -04:00

9 lines
217 B
Batchfile

@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));