Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM // simple af
- @echo off
- title %~n0%~x0
- cd %temp%
- color 0a
- :top
- cls
- set /p str=Say:
- if "%str%" == "%str%" goto doVoice
- :doVoice
- cls
- echo Dim message, sapi>>doVoice.vbs
- echo message="%str%">>doVoice.vbs
- echo Set sapi=CreateObject("sapi.spvoice")>>doVoice.vbs
- echo sapi.Speak message>>doVoice.vbs
- start doVoice.vbs
- ping localhost -n 2 >nul
- if exist dovoice.vbs del doVoice.vbs>nul
- goto top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement