#! /bin/sh # Kolmisoft 2009 # # put into folder with wav files and run # this script will convert all files to Asterisk compatible format OUTPUT_FOLDER="converted_files" mkdir -p $OUTPUT_FOLDER for file in *; do echo "Converting: $file" /usr/bin/sox $file -r 8000 -c 1 -s -w $OUTPUT_FOLDER/$file resample -ql done