From 73bb1d670d1f4bbc76e80446264ee41345872c6b Mon Sep 17 00:00:00 2001 From: Chrystian Huot Date: Mon, 2 Sep 2019 09:52:43 -0400 Subject: [PATCH] Compatibility issues with ACC encoding, reverting back to MP3 --- examples/upload.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/upload.sh b/examples/upload.sh index 71b43a7..701fcfa 100755 --- a/examples/upload.sh +++ b/examples/upload.sh @@ -4,16 +4,16 @@ api="http://127.0.0.1:3000/upload" key="b29eb8b9-9bcd-4e6e-bb4f-d244ada12736" basename="${2%.*}" -aacfile="$basename.aac" +mp3file="$basename.mp3" jsonfile="$basename.json" system=$1 wavfile="$basename.wav" exec >/dev/null 2>&1 -nice -n 19 ffmpeg -i "$wavfile" -af dynaudnorm=m=20 "$aacfile" && \ +nice -n 19 ffmpeg -i "$wavfile" -af dynaudnorm=m=20 "$mp3file" && \ curl $api \ - -F "audio=@$aacfile;type=audio/aac" \ + -F "audio=@$mp3file;type=audio/mpeg" \ -F "json=@$jsonfile;type=application/json" \ -F "key=$key" \ -F "system=$system" \