Gitiles
Code Review
Sign In
gerrit.osmocom.org
/
gapk
/
59a6c2dc621cedb6480f0704170137dc28aca846
/
.
/
contrib
/
gen_testdata.sh
blob: a8bb8c9a4ed52f52ec921bda2ae65d9a778ad7c6 [
file
] [
log
] [
blame
]
#!/bin/sh
# script to generate a .s16 file (s16le with 8kHz) from an arbitrary MP3
# usage: gen_testdata.sh foo.mp3 foo.s16
WAV
=
`mktemp`
MP3
=
$1
S16
=
$1
mpg123
-
w
"$WAV"
"$MP3"
sox
"$WAV"
-
b
16
-
c
1
-
r
8000
"$S16"
rm
"$WAV"