Open thijstriemstra opened 3 years ago
I've never tried this. What is your use case? If you need to create waveform data in the browser, the waveform-data library should work, using Web Audio.
from the faq:
Note that this approach is generally less efficient than pre-processing the audio server-side, using audiowaveform.
so for large audio files this isn't an option and that's why I'd like to compare the performance of audiowaveform in terminal and browser.
@chrisn I have a use case :) Running the library in a supabase edge function. They use deno runtime which supports wasm.
Have you by chance tried this in at any-point in the last 3 years?
Sorry, no. It's not something I've needed to be able to do.
Inside browser using WASI we can benefit faster generation of waveform data. With WASI build then we can use this C++ library directly inside browser. Currently we are using OPFS to strore large audio+video file. It will be useful to generate the data right there.
I was wondering if anyone tried to compile this utility into WebAssembly so it can be run in the browser? or is this not possible? any ideas/pointers are welcome!