Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Microsoft SAPI in ASP
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

Carefree
Advanced Member

Philippines
4208 Posts

Posted - 07 December 2024 :  12:47:34  Show Profile  Reply with Quote
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.

Edited by - Carefree on 07 December 2024 12:49:32

HuwR
Forum Admin

United Kingdom
20585 Posts

Posted - 11 December 2024 :  07:55:27  Show Profile  Visit HuwR's Homepage  Reply with Quote
This any help?

https://simon.rozman.si/computers/iis/sapi5-on-iis

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07