Install silentjack by entering the following commands in the terminal:
sudo apt update sudo apt install silentjack
Description:
silence detector for the JACK audio system
SilentJack listens, using the JACK audio system, for silence. When silence is detected, it runs the command specified. Once the command has been run, a grace period is observed before resuming the silence detection.
Homepage: http://www.aelius.com/njh/silentjack/
Version: 0.3-2build2
Section: universe/sound