orcasound / orcanode-monitor

Web service for monitoring liveness of orcanode audio streaming
MIT License
0 stars 1 forks source link

Add some hysteresis for flaky nodes #195

Closed dthaler closed 1 day ago

dthaler commented 1 week ago

Damp the notifications when a node goes up/down too frequently

dthaler commented 1 day ago

Use configurable thresholds for min/max silence detection Only transition Unintelligible -> Online once go above ORCASOUND_MAX_SILENCE_AMPLITUDE Only transition Online -> Unintelligible once drop below ORCASOUND_MIN_NOISE_AMPLITUDE or similar name So O->U->O requires dropping below MIN and then raising above MAX

We have: ORCASOUND_MIN_INTELLIGIBLE_SIGNAL_PERCENT: The minimum percentage of max amplitude across all frequencies of amplitude outside the 50-60 Hz range needed to determine that an audio stream is intelligible. Default: 30