?

Log in

No account? Create an account
Sarah's Blog [entries|archive|friends|userinfo]
Sarah

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Stephen Hawking's Simulator [Apr. 2nd, 2009|10:56 pm]
Sarah
Did you know you can use the Speech Synthesiser that is installed as part of MS Office in your own programs?

Copy the bit below into notepad, and save it as "speech.vbs", then run it. =D





const svsflagsasync = 1
const svsfpurgebeforespeak = 2

set speech = createobject("sapi.spvoice")

for each v in speech.getvoices
wscript.echo v.getdescription
next

set speech.voice=speech.getvoices.item(0)
speech.rate=2
speech.volume=100
speech.speak "Hi, my name is Stephen Hawkings. I am the Lucasian Professor of Mathematics at the University of Cambridge. I love working there because there's lots of hot babes on campus. Oooo. Oh yeah baby... that's the way.", svsflagsasync + svsfpurgebeforespeak

do
wscript.sleep 100
'do things here.
loop until speech.waituntildone(10)
linkReply

Comments:
[User Picture]From: sarahs_muse
2009-04-08 10:18 pm (UTC)
(Reply) (Parent) (Thread)
From: ex_sonjaaa
2009-04-08 10:20 pm (UTC)
Sweet!
(Reply) (Parent) (Thread)