I essentially need a decibel meter app with an adjustable threshold alarm. I would like the alarm to be audio as well as vibration. Being able to pair the device and receive the alarm on a watch would also be nice, but not necessary. I will need headphone/mic connectivity, and would like to be able to connect to wireless headphones via bluetooth. The app would need to monitor the wireless or wired microphone. Just a simple static splash screen with a logo, start/stop, and some way to set the threshold of the alarm is all I think I need for the GUI. The tricky part would be false negatives as this app would be used to monitor when ambient noise falls below the set threshold. When the ambient noise hits that predetermined threshold, an alarm sounds. Unfortunately, we will have to deal with "false positives" when there are pauses or silence in the ambient noise. I think I have worked out a solution where if the ambient noise breaks the threshold and stays in a range for half a second then the alarm is triggered. If it does not remain in this range and drops below for more than half a second, the alarm is not triggered.
I have a flow chart attached of what that might look like. I am open to other suggestions or approaches.