Install espeak
:
macOS:
brew install espeak
Ubuntu Linux:
sudo apt-get install espeak
Run a (time-consuming) command at the UNIX command-line and play a sound when it is finished so you don't need to wait for it to finish or constantly check back:
bash$ sleep 10s && espeak 'Done!'