# MP3 to GSM file conversion script
#
#  We do the conversion because of:
#  1) Segmentation faults related to format_mp3.so (bug #4871)
#  2) Efficiency
#
# Based on: http://www.aerospacesoftware.com/ogg2mp3-howto.html
# Build procedure:
#  1) Install lame-[devel], libmad-[devel] from livna.org
#  2) build sox from source
#
# Last updated 02/08/2006 by SAV
# Just copy to folder and run ....

find . -name \*.mp3 -print -exec sox -V {} -r 8000 -c 1 -w -t .gsm {}.gsm \;

# Sox options:
#  -V 		* show verbose description of each step taken
#  -c n		* use n channel(s) on output
#  -w		* word order of sample data
#  -t .fmt	* force .fmt format