core icon indicating copy to clipboard operation
core copied to clipboard

WebAudio API error when rendering video

Open RedWilly opened this issue 7 months ago • 2 comments

Hey there , so amm currently working on script to video ( if you are familiar with invideo ai which allow people to create video from script/text)

I’ve run into a recurring issue while rendering videos. The browser console throws the following error:

diffusion-studio.ts:516  Failed to decode audio using WebAudio API. Audio might not be available.

WebAudio API is failing to decode the audio, video ends up been rendered but doesnt have an audio.

If anyone has encountered this before or has experience working with WebAudio API, I'd greatly appreciate your insights. Also, if anyone is open to taking a quick look at my project to suggest improvements or fixes, I’d be super grateful, first time playing around with diffusion studio

The backend isn't ready yet (still fixing some bugs), but there’s a dummy.ts file you can use to mock the expected response and reproduce the issue.

MY PROJECT: https://github.com/RedWilly/invideo-ai-pexels

RedWilly avatar May 20 '25 17:05 RedWilly

If Web Audio can't decode it there is not much you can do about it. It's simply a browser limitation

k9p5 avatar May 20 '25 22:05 k9p5

wow i swtiched browser from edge to chrome and tried different audio) still. ( in preview - visual container, the audio work)

i know this might not be my place but can you look into this diffusion-studio ( and see if am processing it all wrong)

https://github.com/RedWilly/invideo-ai-pexels/blob/main/lib/services/diffusion-studio.ts

thanks

RedWilly avatar May 21 '25 12:05 RedWilly