title: convert wav to mp3 using javascript
body: <p>Below is a code, I would like to convert wav format to mp3. Refereed to <code>Record.js</code>. But it is going over my head. Can anyone solve this? (View consists of empty DataView i.e, DataView {})</p>
  
  <pre><code>var blob = new Blob ( [ view ], { type : 'audio/wav' } );
  
      // let's save it locally
      outputElement.innerHTML = 'Handing off the file now...';
      var url = (window.URL || window.webkitURL).createObjectURL(blob);
      var link = window.document.createElement('a');
      link.href = url;
      link.download = 'output.wav';
      var click = document.createEvent("Event");
      click.initEvent("click", true, true);
      link.dispatchEvent(click);
      audioplayer.src = url;
  </code></pre>