mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 04:03:53 +00:00
4d3dac5b52
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16744 d0543943-73ff-0310-b7d9-9358b9ac24b2
16 lines
410 B
Bash
Executable File
16 lines
410 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sounds_location=$1
|
|
for rate in 32000 16000 8000
|
|
do
|
|
for i in ascii base256 conference currency digits ivr misc phonetic-ascii time voicemail zrtp
|
|
do
|
|
mkdir -p $sounds_location/$i/$rate
|
|
for f in `find $sounds_location/$i/48000 -name \*.wav`
|
|
do
|
|
echo "generating" $sounds_location/$i/$rate/`basename $f`
|
|
sox $f -r $rate $sounds_location/$i/$rate/`basename $f`
|
|
done
|
|
done
|
|
done
|