for i in `ls *.wav`
do
    filen=`basename $i .wav`
    echo $filen
    ./sox -t .wav $i -t .aiff -r 32000 $filen.aiff rate
done

