audio to mp3 using ffmpeg code example
Example 1: convertingwav to mp3 linux ffmpeg
ffmpeg -i input.wav -vn -ar 44100 -ac 2 -b:a 192k output.mp3
Example 2: converting mp3 with FFMPEG
ffmpeg -i input.mp3 output.ogg
ffmpeg -i input.wav -vn -ar 44100 -ac 2 -b:a 192k output.mp3
ffmpeg -i input.mp3 output.ogg