Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 August 2nd, 2006, 06:58 AM
sd sd is offline
Registered User
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I use SAPI in HTML page to get voice?

Hi every body....

I am a new member of this forum.I need your help.

I am using MicroSoft Speech API's Text-To-Speech(TTS) in order to get speech output of the content of my HTML web pages.I have written the following code in javascript to do so.

<script language="JavaScript">
function readwebtext()
{
var VoiceObj=new ActiveXObject("Sapi.SpVoice");
VoiceObj.Speak("HELLO WORLD!", 1)
}
</script>

It is working fine.It gives output "Hello World" in my P.C's speaker.But when I have uploaded the HTML page on web-server.
It shows javascript error-
      "Error:Automation server can't create object".
If anybody knows the answer please help me. If you knows,how to embed
Sapi.SpVoice activex object into HTML page,please tell me.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Running SAPI.SpVoice with HTA or WSH aspless Javascript 2 June 18th, 2008 06:56 AM
SAPI Jigna VB Components 0 March 6th, 2005 10:12 AM
MS SAPI mega Classic ASP Professional 0 October 17th, 2004 12:46 PM
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
How to create HTML page from a dynamic ASP page musharaf Classic ASP Professional 2 March 18th, 2004 09:31 PM





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