Thread: Speech
View Single Post
Old 06-18-2003   #4 (permalink)
etM
Registered Member
 
etM's Avatar
 
Join Date: Jun 2003
Location: Florida, somewhere near JamLando
Posts: 2
speech

I had an issue as well, but it was with getting the script to actually speak when executed as stand-alone. I put a message box in there to confirm some variables, and - there was the voice. That's how I'm pullin' the voice out of VBScript, with a message box. I haven't investigated the mechanics of it yet , I was just curiouse to try it out. Maybe it has something to do with the sound buffer? Hmm... Here's the code (based on the above):

Dim objTTS
Set objTTS = CreateObject("Speech.VoiceText")
objTTS.Register "", wscript.scriptname
objTTS.Speak "Hello Vee Bee Script World!", 1
msgbox "Hello Vee Bee Script World!", vbInformation + vbOkOnly, "Hello!"

Last edited by etM : 06-18-2003 at 11:35 PM.
etM is offline   Reply With Quote