A complete WAV encoder in about 40 lines of JavaScript
WAV is one of the simplest audio formats you can write: a 44-byte header followed by raw samples. Here's a complete encoder for 16-bit, 24-bit and 32-bit float WAV that I use in the open-source librar
mp3towav.hashnode.dev4 min read