Skip to content Skip to sidebar Skip to footer

Getting Pcm Data From Wavesurfer.js Backend/web Audio Api

I am using wavesurfer.js to create a multitrack player online and want to export a remixed version of the combined tracks with levels panning etc. First I have an array of audioFil

Solution 1:

Given that you currently have an array of AudioBuffer objects, you can interleave the Float32Array PCM data contained within each AudioBuffer, and then use that interleaved PCM to create a RIFF/Wav file to download. If each AudioBuffer is a track, then all of the left/right channels in the array must be combined separately and interleaved at the end. Here's how to start with one AudioBuffer track:

Convert AudioBuffer to ArrayBuffer / Blob for WAV Download

Post a Comment for "Getting Pcm Data From Wavesurfer.js Backend/web Audio Api"