![]() |
|
![]() |
||
|
Trigger Speech with JavaScript onclick event Trigger Speech with JavaScript onclick event
VHSS API - onClick Example (Scene embedded in HTML)
sayText(txt,voice,lang,engine)
To prompt the Avatar 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!',1,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. |
||||
![]() |
![]() |