Advertisement
Imthedude025

Text To Voice (Batch)

Dec 25th, 2018
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2. ::Text To Voice Via Batch ::
  3. ::Created by RU$$ [http://russdev.mooo.com/] ::
  4. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  5. @ECHO OFF
  6.  
  7. Call :SpeachFunction "Hello, This is windows OS"
  8.  
  9. pause>nul
  10. GOTO :EOF
  11.  
  12. :SpeachFunction
  13. Cls
  14. (
  15. echo WScript.StdOut.Write wscript.arguments(0^)
  16. echo Set Voice=CreateObject("SAPI.SpVoice"^)
  17. echo voice.speak wscript.arguments(0^)
  18. )>%tmp%\%~n0.vbs
  19. @cScript.EXE /noLogo "%tmp%\%~n0.vbs" "%~1"
  20. GOTO :EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement