You need lame - mp3 coder. You can download it on
http://lame.sourceforge.net/ . Then to every file you need :
1. Uncompress to wave - lame --decode <file>
2. Compress to mp3 with bitrate 128 - lame -b 128 <wav file>
Then put this in for (or foreach) in bash script