title: Converting WAV to any compressed audio format in client-side JavaScript
body: <p>I am recording audio from <code>getUserMedia({audio:true});</code> in the browser using <a href="https://github.com/mattdiamond/Recorderjs">Recorder.js</a> and then exporting it as a WAV file because that's the only option the library provides.</p>
  
  <p>A 1 minute 20 seconds file is 14.1 MB large. I need to upload the audio to a server and I need to do it fast. How do I convert the WAV audio in any other compressed format to lower the file size?</p>
  
  <p>I don't mind converting to:</p>
  
  <ul>
  <li>MP3</li>
  <li>Opus</li>
  <li>WebM</li>
  <li>Ogg</li>
  <li>FLAC</li>
  <li>any other format you know of</li>
  </ul>
  
  <p>If there is no way as of now to convert to any of these formats, how can I compress the WAV file on the client?</p>
  
  <p>PS: I did a lot of searches to find anything that converts WAV in JS, but found nothing. <a href="https://github.com/akrennmair/libmp3lame-js">libmp3lame.js</a> isn't working in Chrome.</p>
  
  <p>Thanks!</p>