Skip to content

Instantly share code, notes, and snippets.

@dewomser
Last active April 19, 2025 02:36
Show Gist options
  • Save dewomser/0cdc62c5b7474285627c4d8d5baa6bea to your computer and use it in GitHub Desktop.
Save dewomser/0cdc62c5b7474285627c4d8d5baa6bea to your computer and use it in GitHub Desktop.
Make an audio countdown for bash espeak and ffmpeg
#!/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
@dewomser
Copy link
Author

sound Sample

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