Sarah (sarahs_muse) wrote,
Sarah
sarahs_muse

Stephen Hawking's Simulator

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)
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 20 comments