Running this on OSX, so need to install sox
first:
brew install sox
Then paste this file somewhere, and run it in the background with:
bash monitor-audio-levels.sh
As of right now, it only add a character to /tmp/threshold-tally.txt
for every 5-second interval where volume exceeds the arbitrary "3" threshold. Would be really useful to timestamp each, and convert to JSON that we can send to a custom leftronic.com dashboard widget, and get a rough idea of how much of the day a room's volume exceeds a given threshold.
Teams can arrange their dashboard however they please, and line this up with velocity or other metrics. They are free to draw their own conclusions and determine what's in their best interest, and adjust behavior and habits as they set fit. Teams want to do good productive work, and if we have data, we can self-correct. Ideally data will be wiped regularly, at the team's discretion, as it's intended to be only an in-the-moment tool for teams.