Add debug logs for audio labels (#8080)

This commit is contained in:
Nicolas Mowen 2023-10-07 08:23:11 -06:00 committed by GitHub
parent 52cc707eb8
commit 49e7723405
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