r/AudioProgramming • • Sep 19 '24

Create an audio file in Javascript?

Hi folks, I'm trying to figure out if something is possible and it's turning out to be one of those things where the search terms are too close to a million other questions.

I would like to know if it's possible to create an audio file that the user can download, but entirely from JavaScript. I have some web assembly that generates audio and I have web audio code too entirely from the client side, so playback is no issue. It would be cool if I could run said engine, output the results to a wav file and allow the user to save this as a download.

Anyone done such a thing or know of resources for doing it?

thanks!

2 Upvotes

3 comments sorted by