Computer Tech
Text to Speech - Printable Version

+- Computer Tech (http://computertech.createmybb3.com)
+-- Forum: Programming (/forumdisplay.php?fid=6)
+--- Forum: Batch, Bash & VBS (/forumdisplay.php?fid=9)
+--- Thread: Text to Speech (/showthread.php?tid=114)



Text to Speech - Scorch - 01-15-2011 11:58 PM

This is fun to mess with. Open notepad and copy this in.
Code:
do
StrText=("This is where you, type, your text!")
set ObjVoice = CreateObject("SAPI.SpVoice")
ObjVoice.Speak StrText
loop
Then save it as a .vbs, great for pranks. You can close it in task manager if you become annoyed.


RE: Text to Speech - Hidden Dragon - 01-16-2011 12:12 AM

Haha I like the use of a loop there. I knew about SAPI before but this is still good for those who didn't.

Edit: I like your sig. Assembly: You shoot yourself in the foot but first have to create the gun, the bullet, and your foot.


RE: Text to Speech - Scorch - 01-16-2011 12:21 AM

Excellent idea to addIdea.


RE: Text to Speech - Ironside - 01-16-2011 11:18 AM

I never get tired of these scripts.