How do I use the Speech API in an ASP page? I've tried this code but in vain.
Code:
' declaring variable to hld SAPI object
Dim voic
' creating SAPI object using spvoice
Set voic = Server.CreateObject("SAPI.SpVoice") ' no problems here..
' using speak function of SpVoice to speak string
voic.Speak("Welcome To MY First Speech Enabled ASP Page, Have a nice day ") ' Here I get an error
'Set voic.voice = voic.GetVoices("Name=Microsoft mary", "Language=409").Item(0)
'Set voic.voice = voic.GetVoices("Name=Microsoft mike", "Language=409").Item(0)
'Set voic.voice = voic.GetVoices("Name=Microsoft sam", "Language=409").Item(0)
' Destroying SAPI.spvoice object
Set voic = nothing
I get a VBScript error - permission denied.
Any thoughts?
- mega