I am asking because I couldn\'t find the answer anywhere. I have successfully implemented RecorderJS in order to record microphone input in JS. However, the recorded file is WAV
I was frustrated with this problem, and existing solutions, so I came up with something simpler:
https://github.com/sb2702/audioRecord.js
Usage
Create a recorder object (async because requires user permission)
Recorder.new(function(recorder){
});
Start recording
recorder.start();
Stops recording
recorder.stop();
Export as mp3
recorder.exportMP3(function(mp3Blob){
console.log("Here is your blob: " + URL.createObjectURL(mp3Blob));
});
Mostly based on RecorderJS, but changed some things around to export to mp3 files, and to not have to muck around with AudioContext / navigator.getUs