The say command is the Mac’s built-in text-to-speech, and it is more useful than a party trick. A long command that takes ten minutes can announce when it is done.
say -v '?'
say -v Alex "The backup is finished"
say -o note.aiff -f note.txt
-v '?' lists the installed voices. -v with a voice name picks one, -r sets the speed in words per minute and -f reads the text from a file. -o writes the speech to an audio file instead of playing it. The man page lists AIFF as the default, and other formats are available with extra options.
For long jobs, chain it after the command:
rsync -a ~/Documents /Volumes/Backup/ && say "Backup done"
The && means it only speaks when the command succeeded. Use ; if you want to hear it either way.
The caveat is the voices. Which ones are available depends on the macOS version and on what you downloaded in System Settings. A voice has to be installed before -v can use it. And an MP3 is not a direct output format, so convert the audio file afterwards if you need one.
Further reading: say(1) manual