How do I declare components on web pages?

Last reviewed: 5/1/2002

HOW Article ID: H050201

The information in this article applies to:

  • SpeechKit 3

Summary

How do I define the components for web pages?

The speechkit.com, developerworkbench.com, grammarkit.com, lexiconkit.com, profilekit.com, and voicemarkupkit.com web sites automatically refer to subdirectories with the chant.net domain.

This allows us to take advantage of the secured server capabilities of chant.net for all forms data entry for support in addition to shopping cart and order processing. This also means the URL for the component cab files is different.

More Information

To use the capabilities of the ChantSR and ChantTTS components from web pages, you declare them as objects on the page as follows:


<object NAME="ChantTTSSession" TYPE="application/x-oleobject"
classid="clsid:c1983d60-e2c5-4ae3-8c4f-9a93812a2554"
codebase="http://www.chant.net/speechkit/cabs/chantxa.cab"
>
<PARAM NAME="Serials" VALUE="SerialNumberFromDomainRegistration">
</object>

<object NAME="ChantSRSession" TYPE="application/x-oleobject"
classid="clsid:4adfb9cc-714f-4b16-a288-6e0b190cf4d3"
codebase="http://www.chant.net/speechkit/cabs/chantxa.cab"
<PARAM NAME="Serials" VALUE="SerialNumberFromDomainRegistration">
</object>

You set property values, invoke methods, and process callback events using JavaScript or VBScript.