Log camera name and volume in addition to label and score when hearing sound

This commit is contained in:
Sebastian Noack 2024-02-02 21:42:45 -05:00
parent c5819478d3
commit eeb7e61543

View File

@ -211,7 +211,7 @@ class AudioEventMaintainer(threading.Thread):
audio_detections = [] audio_detections = []
for label, score, _ in model_detections: for label, score, _ in model_detections:
logger.debug(f"Heard {label} with a score of {score}") logger.debug(f"Heard {label}; camera: {self.config.name}, score: {score}, volume: {rms}")
if label not in self.config.audio.listen: if label not in self.config.audio.listen:
continue continue