Imthedude025

Text To Voice (Batch)

Dec 25th, 2018
154
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×