Question for sayText
1. When I call sayText to make the avatar speak a text, can I store the audio returned from the SitePal server?
2. When I call sayText to make the avatar speak a text, can I monitor the start and end of avatar speaking?
Answer
Hello!
1.
If you are looking to improve performance - there is no need to store the audio because our built-in caching system already does that for you. We cache over 20M audios on the cloud to ensure that subsequent calls for the same audio take less time.
If your intention is different - please send us a note to support@sitepal.com and explain what you have in mind, we will advise.
2.
Yes, when you call sayText or sayAudio or sayAI - you can use out callbacks to know when audios start speaking & end speech. You can also receive progress callbacks if you want to.
See this example for reference - https://sitepal.com/api/examples/syc_classic.html
And checkout the "callbacks" section in the Client API reference for more information.
Note: Start & End audio callbacks are always sent - all you need to do is setup the JS callback functions to receive them.
To receive progress callbacks you need to turn ON progress attribute using the 'setStatus' call.
Hope this helps!
Regards,
Gil
The SitePal Team
Customer support service by UserEcho
Hello!
1.
If you are looking to improve performance - there is no need to store the audio because our built-in caching system already does that for you. We cache over 20M audios on the cloud to ensure that subsequent calls for the same audio take less time.
If your intention is different - please send us a note to support@sitepal.com and explain what you have in mind, we will advise.
2.
Yes, when you call sayText or sayAudio or sayAI - you can use out callbacks to know when audios start speaking & end speech. You can also receive progress callbacks if you want to.
See this example for reference - https://sitepal.com/api/examples/syc_classic.html
And checkout the "callbacks" section in the Client API reference for more information.
Note: Start & End audio callbacks are always sent - all you need to do is setup the JS callback functions to receive them.
To receive progress callbacks you need to turn ON progress attribute using the 'setStatus' call.
Hope this helps!
Regards,
Gil
The SitePal Team