Skip to content

Instantly share code, notes, and snippets.

@konrad
Created May 29, 2010 17:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konrad/418378 to your computer and use it in GitHub Desktop.
Save konrad/418378 to your computer and use it in GitHub Desktop.
Shell script to increases the speed of given mp3 files.
#!/bin/sh
#
# Increases the speed of given mp3 files.
#
# Published by Konrad Förstner CC0 (Creative Commons Zero)
# No Rights Reserved
# http://creativecommons.org/publicdomain/zero/1.0/
#
# To the extent possible under law, Konrad Förstner has waived all
# copyright and related or neighboring rights to this work. This
# work is published from Germany.
for FILE in $@
do
FILEBASE=$(basename $FILE .mp3)
WAVFILE=${FILEBASE}.wav
SPEEDUPWAVE=${FILEBASE}_speedup.wav
SPEEDUPMP3=${FILEBASE}_speedup.mp3
mpg321 -w $WAVFILE $FILE
sox $WAVFILE $SPEEDUPWAVE tempo 1.5
rm $WAVFILE
lame $SPEEDUPWAVE $SPEEDUPMP3
rm $SPEEDUPWAVE
done
@osoleve
Copy link

osoleve commented May 29, 2010

First Gist I come across on GitHub and it's awesome. Thanks for the great introduction

@konrad
Copy link
Author

konrad commented May 30, 2010

I am happy that you like it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment