Implementing file uploads with different bitrates, compressing them into different qualities and then uploading. Is there a way this could be achieved using javascript ? (Audio file format is mp3)
There's nothing built into JavaScript to do things like MP3 encoding, but there is a library for that here: https://github.com/Kagami/ffmpeg.js/
I also found an article about using that library, albeit for a somewhat different task than you have in mind, here: https://medium.com/jeremy-gottfrieds-tech-blog/javascript-tutorial-record-audio-and-encode-it-to-mp3-2eedcd466e78
I don't think there's any simple, straight-forward way to accomplish what you have in mind, unfortunately. You'll have to plod through this API and figure out how to use it to accomplish your goal.