convert folder wav to mp3

1.a. convert wav folder into mp3 folder; use 64kb quality; should result in not too big files:

liberty@liberty-desktop:~/200909/sprueche/xml$ for f in *.wav; do lame -V 4 -b 64 "$f" "converted/${f%.wav}.mp3"; done

the result is here: /home/liberty/200909/sprueche/xml/converted

1.b. lower quality: $ for f in *.wav; do lame -V 6 -b 48 "$f" "converted/${f%.wav}.mp3"; done

2. convert wav folder to ogg: liberty@liberty-desktop:~/200909/sprueche/store$ for f in *.wav; do sox "$f" -t ogg -r 11025 -c 1 "converted/${f%.wav}.ogg"; done

Comments are closed.