Skip to content

Instantly share code, notes, and snippets.

@championofblocks
Last active December 6, 2025 21:51
Show Gist options
  • Select an option

  • Save championofblocks/3982727 to your computer and use it in GitHub Desktop.

Select an option

Save championofblocks/3982727 to your computer and use it in GitHub Desktop.
Command line bash to convert all wav to mp3
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done
@pweinzettel
Copy link

for i in *.wav; do test -f "${i%.wav}.mp3" || lame -b 320 -h "${i}" "${i%.wav}.mp3"; done

@petercordia
Copy link

This worked great 💯

@YasinAhmet
Copy link

Works like magic, thanks!

@carlajarchuleta1-a11y
Copy link

<script src="https://gist.github.com/championofblocks/3982727.js"></script>

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