How to Convert Audio from wav to mp3 in JavaScript Using ffmpeg.wasm
Check out this basic demo at https://convert.devtails.xyz/and keep an eye out for client side audio conversions in https://kaizen.place/ .
I just posted the following article the other day about using fluent-ffmpeg to convert wavs to mp3s in node.