wasm-media-encoders icon indicating copy to clipboard operation
wasm-media-encoders copied to clipboard

Add support for WAV

Open cdauth opened this issue 1 year ago • 1 comments

Thank you for this amazing library.

In my app, I'm providing MP3 and WAV export. The purpose of the WAV export is that if users need the audio in a format that my app doesn't provide, the WAV export makes more sense than the MP3 export, because it is lossless and much faster to generate, so it is better to integrate into a workflow where the exported audio is converted into another format using an external tool.

Right now I'm using wav-encoder to generate the WAV. It has two drawbacks:

  • It generates the whole WAV file at once synchronously. There is no support for chunks. This means that my UI is frozen while the file is being generated, and I cannot show the progress to the user.
  • It uses JS, which is probably significantly slower than WASM.

This is why I would like to see WAV support in this library. Unfortunately I have no expertise with WASM, so I'm not able to contribute an implementation.

cdauth avatar Nov 27 '23 16:11 cdauth