Trigger Speech On Click Trigger Speech with JavaScript onclick event
onClick Example (Scene embedded in HTML)
sayText(txt,voice,lang,engine) ![]() To prompt the SitePal to speak when a button is clicked use the JavaScript "onClick" function...
<img src="button.JPG" onclick="javascript:sayText('That button makes me say something!',3,1,3);"></img> View the source of this page to see how we have used the JavaScript "onClick" function to call the API sayText function. |
© 2003 Oddcast Inc. All Right Reserved