blob: a8bb8c9a4ed52f52ec921bda2ae65d9a778ad7c6 [file] [log] [blame]
Harald Welte7a046242014-05-08 19:18:01 +02001#!/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
6WAV=`mktemp`
7MP3=$1
8S16=$1
9
10mpg123 -w "$WAV" "$MP3"
11sox "$WAV" -b 16 -c 1 -r 8000 "$S16"
12rm "$WAV"