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