convert wav to mp3 by lame

lameThere is an easy way to compress and convert wav sound file into mp3 using lame software. Of course we need to install the lame first. In slackware we might find lame in or In Ubuntu just using synaptic manager.

The script is copied from a friend in the blogspot site.

thanks to nikesh jauhari who made this script.

Here are the script.

$nano skript-wav-to-mp3

type these:


# name of this script:

# wav to mp3

for i in *.wav; do

if [ -e “$i” ]; then

file=basename “$i” .wav

lame -h -b 192 “$i” “$file.mp3”



Save it by typing ctrl-o

Now the script will convert all wav file in the same folder into mp3 easily.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.