Below is a code, I would like to convert wav format to mp3. Refereed to Record.js
. But it is going over my head. Can anyone solve this? (View consists of empty DataView i.e, DataView {})
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;