Skip to content

Instantly share code, notes, and snippets.

@dewomser
Last active February 12, 2026 17:11
Show Gist options
  • Select an option

  • Save dewomser/0cdc62c5b7474285627c4d8d5baa6bea to your computer and use it in GitHub Desktop.

Select an option

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
#hier kann man noch mehr sound eifügen
#echo "file 'countdown3.wav'" >> filelist.txt
# stitch together
ffmpeg -f concat -safe 0 -i filelist.txt -c copy countdown.wav
# ffmpeg -ss 0 -i countdown3.wav -t 5 -c copy countdown4.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