convert wav to mp3 code example Example: converting wav to mp3 sox sox -t wav -r 8000 -c 1 <wavfilename> -t mp3 <mp3filename>