Harald Welte | 7a04624 | 2014-05-08 19:18:01 +0200 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | # script to generate a .s16 file (s16le with 8kHz) from an arbitrary MP3 | ||||
4 | # usage: gen_testdata.sh foo.mp3 foo.s16 | ||||
5 | |||||
6 | WAV=`mktemp` | ||||
7 | MP3=$1 | ||||
8 | S16=$1 | ||||
9 | |||||
10 | mpg123 -w "$WAV" "$MP3" | ||||
11 | sox "$WAV" -b 16 -c 1 -r 8000 "$S16" | ||||
12 | rm "$WAV" |