Created
July 26, 2022 14:17
-
-
Save rileyjshaw/719f4582f9e82b6a408231c0ff3a6584 to your computer and use it in GitHub Desktop.
Generate a series of MP3s on MacOS. Filenames are left-padded with 0s.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in {001..100}; do | |
say ${i##+(0)} -o "$i.aiff" | |
lame -m m "$i.aiff" "$i.mp3" | |
rm "$i.aiff" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment