
API reference to see if there's a way to access the avatar's audio track.
i want to use avatar audio for some processing

Hello Gurpreet -
Yes - pls see 'getAudioObject' API function in the api documentation.
and API example here -
https://sitepal.com/api/examples/getAudioObject.html
Hope this helps,
Regards,
Gil

how to track errors related to sitepal
how to track errors like if we got error while loading the avatar or some other errors.
for reactjs how we track whether the avatar is speaking or not.
i implement the sitepal in my web app, when i move to next page then the avatar is repeating the previous content even i use interrupt mode.
could we use change to 'queue mode' or 'interrupt mode' after the avatar is loading.
And how we could track if the avatar is in queue mode or interrupt mode.
Please answer this questions

XMLHttpRequest blocked by CORS policy
Hello Gil,
we have a problem, that sometimes we get this error in browser console, when calling sayText().
It happens unpredictable, once in a while. When this happen, the avatar does not say anything.
Are we doing something wrong or is it a problem on your side?
Thank you,
Pavel

Problems using stopSpeach() function
Hi.
We would like to use repeatibly sayText() and stopSpeech(), but we are encountering problems.
After few calls, the sayText() does not start speaking.
My colleague created a Github repo based on your Vue.js example and added a sequence of sayText() and stopSpeech() commands to demonstrate this problem.
This link points to commit with our changes to your example:
https://github.com/dominikbrno/Sitepal-vue/commit/c719d1aabbb0f5c62c1bdf2e1b78067ae78ff70a
If I run the example on my computer (3d photoface -> sayText() button), then it always skips the third sentence.
Could you please guide us how to fix this problem?
Thank you.

Hi Pavel - this issue should now be fixed. Please clear your browser cache and let me know if you still see the problem.
Best,
Gil

Avatar Canvas Error when responsiv within react
Hello,
currently we implement the SitePal avatar within our React Website and everything works complelty fine. But if I want to make the Avatar more reponsive, by changing the last digit to 1, i get the following error:
This is how we integrate the Avatar currently:

Hello!
We've implemented a responsive react JS example for your reference.
In this example we positioned the SitePal character in a realistic web page, with actual content & style.
The example can be found on our support page - www.sitepal.com/support
Here is a direct link - https://sitepal.com/api/examples/react-responsive/index.html
There's a download link on the page itself (at the bottom) - where you can download the source of this page.
Please review, and see if you can use the same methodology.
I hope this will be helpful.
Let me know how goes.
Best,
Gil

CORS error - React JS
Access to XMLHttpRequest at 'http://cache-a.oddcast.com/tts/genB.php"from origin has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
We have added our domain in the licensed domains and still facing the above error
Enviroment React JS

The screen fades to white when I select a masculine voice
When I open www.ttsdemo.com the site appears as normal, with an avatar that represents a feminine voice, but when I select a masculine voice, instead of changing into its corresponding avatar, the screen fades to white, as seen in the photo below, making it impossible for the computer to read the text that I want to write

The problem with this demo has been resolved.
Thank you for your patience.
Best,
Gil
The SitePal Team

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?

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