ffmpeg convert wav to mp3 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
Example 3: converting wav to mp3 sox
sox -t wav -r 8000 -c 1 <wavfilename> -t mp3 <mp3filename>