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
The only Javascript MP3 encoder I've seen is https://github.com/akrennmair/libmp3lame-js, which is a port using emscripten. It's supposed to be slow, and I've never used it.
I don't know of any natively-written Javascript MP3 encoders, and encoding is not covered by the Web Audio API.