Audio capture on webSDK

Hi guys! This is my first time using DeepAR platform, I’ve been trying to capture video + audio but only the video is captured. I added the audio parameter on the mediaDevices settings (so my webApp asks for Mic permission at start), but even so the audio is not being recorded:

const stream = await navigator.mediaDevices.getUserMedia({
audio: true,
video: {
facingMode: mode
}
});

Am I forgetting something or doing something wrong? I’d presume the audio capture is enabled by default (as it is on other platforms like 8th Wall and Blippar)

Thanks!

Hi @Alessandro_Straccia , our current web SDK doesn’t currently have a sound capture feature it only records the canvas output, if you need sound capture you would need to implement it yourself or use a 3rd party solution.

Hi @Alessandro_Straccia, I was able to accomplish this by modifying the deepar.js code. Invasive, but it worked. Are you still looking for a solution?

1 Like