I'm trying to use a MS voice from a vbscript ASP file, run on a local host application. Here's the affected section of code:
Dim speaks, speech
speaks = rsD("Bee")
Set Girl = CreateObject("SAPI.spVoice")
Set Girl.Voice = Girl.GetVoices.Item(0)
Girl.Rate = 3
Girl.Speak "<pitch absmiddle = '8'/>" & speaks
If Err.Description > "" Then Response.Write Err.Description
I'm getting a "Class Not Registered" result. but if I use the code in a stand-alone .vbs file (with the value of 'speaks' specified), it works fine. My best guess is that it's related to permissions, but I haven't been able to set any that work.