How do I make a machine “blank screen” for a period of time (as a penalty) if certain noise levels are reached?
sox -t .wav "|arecord -d 2" -n stat
With -t .wav we specify we process the wav type, "|arecord -d 2" executes the arecord program for two seconds, -n outputs to the null file and with stat we specify we want statistics.