Skip to content

Instantly share code, notes, and snippets.

@Data-ptr
Created April 19, 2018 21:32
Show Gist options
  • Select an option

  • Save Data-ptr/41125b410083a9d406c31b78f05c69d8 to your computer and use it in GitHub Desktop.

Select an option

Save Data-ptr/41125b410083a9d406c31b78f05c69d8 to your computer and use it in GitHub Desktop.
Using soundmeter to trigger a script if the mic input is above $RMS Rms (when a loud sound is present)
PROG=hello.sh;RMS=100;soundmeter --trigger +$RMS --action exec --exec $PROG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment