Last active
April 19, 2025 02:36
-
-
Save dewomser/0cdc62c5b7474285627c4d8d5baa6bea to your computer and use it in GitHub Desktop.
Make an audio countdown for bash espeak and ffmpeg
This file contains hidden or 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 | |
# make countdown | |
espeak -v en-us -g60 -p75 -w countdown1.wav " 10 9 8 7 6 5 4 3 2 1 0"&& espeak -v en-us -w countdown2.wav "We have a lift off !" | |
# make a list | |
echo "file 'countdown1.wav'" > filelist.txt | |
echo "file 'countdown2.wav'" >> filelist.txt | |
# stitch together | |
ffmpeg -f concat -safe 0 -i filelist.txt -c copy countdown.wav |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sound Sample