You can use a beep command in your scripts, install and it plays from the computer's speaker.
sudo apt-get install beep

Technical notes, and other ideas.
You can use a beep command in your scripts, install and it plays from the computer's speaker.
sudo apt-get install beep