0
Answered

Can we pass link/url of a MP3 directly in sayAudio() API call?

Sanjay 12 months ago in SitePal Gold updated by Gil Sideman 12 months ago 2

Hi, I am one of the developer of a client using your platform (Gold Plan). We need help with client side API.

Is it possible to pass url/link of a mp3 directly in sayAudio() API call? We have mp3 files hosted in different places that we want to pass to the avatar during runtime. Is it possible?

Thanks,


Answer

Answer
Under review

Hello Sanjay -

All audio files must first be uploaded to your SitePal account & pre-processed. Pre-processing prepares the file for being "spoken" - by performing lipsync analysis and optimizing audio format for streaming.

We do provide upload audio API functionality with the Server API. This should allow you to first upload an audio, and then speak it with the Client API 'sayText'.

But the conjunction of these two functions may not be fast enough for realtime (you can try) - it would work best if all your audios were pre-uploaded into the account, either manually or programmatically.

Let us know if we can further advise or assist.

Regards,

Gil

The SitePal Team

Answer
Under review

Hello Sanjay -

All audio files must first be uploaded to your SitePal account & pre-processed. Pre-processing prepares the file for being "spoken" - by performing lipsync analysis and optimizing audio format for streaming.

We do provide upload audio API functionality with the Server API. This should allow you to first upload an audio, and then speak it with the Client API 'sayText'.

But the conjunction of these two functions may not be fast enough for realtime (you can try) - it would work best if all your audios were pre-uploaded into the account, either manually or programmatically.

Let us know if we can further advise or assist.

Regards,

Gil

The SitePal Team