0
Under review
setStatus's interruptMode does not change behavior
Hello
When I click on the "play" button on my avatar, it starts speaking from the first sayText() sent during the session. That is, it queues all the sayText directives.
To avoid this, I use setStatus(1,0,0,1) inside vh_sceneLoaded(). I know the setStatus is being picked because I can change the last parameter to not display the control buttons and that works.
However, the avatar still queues the sayText commands. When I click "play" I only want it to repeat the last thing it said. How can I accomplish this?
Thank you.
PS: Sitepal.com is not working again. It is redirecting to a weird url.
Customer support service by UserEcho
Hello Francisco !
On the SitePal support page we have a technical example that demonstrates the setting of the "interrupt mode" attribute.
You can check it out here -
https://www.sitepal.com/api/examples/setstatus.html
Click on the sayText and sayAudio links in sequence (multiple times if you like).
Then wait to hear the audios spoken in sequence.
This is correct, because the default state of this attribute is OFF (do not interrupt).
Now, click on setStatus(1,0,0,1) to turn ON interrupt mode.
Click again on the two links, in whatever order you like. Notice how each audio starts as soon as you click the link, and interrupts the previously playing audio.
This seems to function as expected.
Clicking on the avatar's 'Play' button always replays the most recently played audio. (or, if not audio was played, the audio which is assigned to the Scene if any).
Your description of your implementation sounds correct. Calling setStatus inside vh_sceneLoaded is recommended methodology.
So I'd need access to your web page to be able to further advise. Can you send a note to support@sitepal.com with the details? Include any credentials we might need to see it.
Regards,
Gil
The SitePal Team