Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2004, 12:46 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default MS SAPI

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
__________________
- mega
Aspiring JavaScript Ninja





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find php/sapi/php4apache2.dll kara333 Beginning PHP 7 October 8th, 2008 08:54 AM
Running SAPI.SpVoice with HTA or WSH aspless Javascript 2 June 18th, 2008 06:56 AM
How can I use SAPI in HTML page to get voice? sd General .NET 0 August 2nd, 2006 06:58 AM
SAPI Jigna VB Components 0 March 6th, 2005 10:12 AM
Can't find Sapi folder kara333 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 September 5th, 2004 07:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.