Skip to content

Instantly share code, notes, and snippets.

@npinto
Created March 22, 2012 10:49
Show Gist options
  • Select an option

  • Save npinto/2157655 to your computer and use it in GitHub Desktop.

Select an option

Save npinto/2157655 to your computer and use it in GitHub Desktop.
audiobook timestretch beta scripts
#!/bin/bash
mkdir -p 1.8X
for f in *.mp3; do
src="$f"; dst="1.8X/$(basename "$f")";
echo "${src}" to "${dst}";
sox "$src" "${dst}.wav" tempo 1.8 50;
lame -b 320 "${dst}.wav" "${dst}";
rm -vf "${dst}.wav";
done;
#!/bin/bash
mkdir -p 1.8X
for f in *.mp3; do
src=$f; dst="1.8X/$(basename "$f")-1.8X.mp3";
echo "${src}" to "${dst}";
sox "$src" "${dst}" tempo 1.8 50;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment