Add debug logs for audio labels

This commit is contained in:
Nicolas Mowen 2023-10-06 06:20:44 -06:00 committed by GitHub
parent 9a4f970337
commit e7f266b861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,6 +196,8 @@ class AudioEventMaintainer(threading.Thread):
model_detections = self.detector.detect(waveform) model_detections = self.detector.detect(waveform)
for label, score, _ in model_detections: for label, score, _ in model_detections:
logger.debug(f"Heard {label} with a score of {score}")
if label not in self.config.audio.listen: if label not in self.config.audio.listen:
continue continue