0
Answered

API reference to see if there's a way to access the avatar's audio track.

gurpreetsingh936 yesterday at 1:41 a.m. updated by Gil Sideman yesterday at 8:10 a.m. 14

i want to use avatar audio for some processing

Answer

Answer
Under review

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

Answer
Under review

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

got this : This function is not available to your plan. Please contact SitePal support.

Specifically, i am looking for any audio elements or any code that creates a MediaStream or MediaStreamTrack for the avatar's audio.

Yes, this feature requires the Platinum plan.

The function returns the actual audio object while playing - so you can access the actual audio data in realtime. 

could it be possible if you allowed this feature for testing purpose. if it will fit in my scenario than i will move to Platinum plan

Hello Gurpreet,

We can upgrade your account to Platinum so you can test and verify the functionality.

If it does not work for you we would downgrade your account before the next billing period so that you would pay nothng extra.

Please send a note to support@sitepal.com and indicate your login email & we will make this change for you.

Best,

Gil

my current plan is 'GOLD' , would it automatically move to 'GOLD' plan after one month ?

Not automatically. 

You would need to contact us and let us know if you would like to downgrade.

When your account is upgraded I suggest to disable autobilling, so that you would not be unintentionally charged.

or we can change to "GOLD" plan manually right ?

No, downgrade requires our support team. 

Just let them know if you need to downgrade back to gold.

actually i want to capture the avatar audio stream and need to send it to the backend in realtime. make sure that it will sync with avatar lips. is this possible ?

You have access to the audio stream data in real time.

I'm not sure if it will be well synched if you share it with your server - on the other hand, possibly yes.

The audio URL is on our server - the audio object gives you access to it. 

So your server could patch in directly to our server.

You may want to introduce a minimal delay before speech starts to enable better sync.

The only way to find out is to try.

What exactly are you trying to accomplish? It may help me better advise to understand your setup better.

i want to  stream the avatar along its audio stream to the backend using websockets  and at backend side i created a media file that will have that streams and later on when someone play that file then he/she can listen the avatar sound. 

Might be good to schedule a mtg later today or tomorrow. It would be helpful to discuss and clarify.

You can send a note to support@sitepal.com with your email or skype handle and I'll contact you directly to coordinate.

Better understanding will allow me to better advise....