diff --git a/frigate/app.py b/frigate/app.py index 06b30f388..30fde1429 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -393,9 +393,7 @@ class FrigateApp: def start_audio_processors(self) -> None: audio_process = mp.Process( - target=listen_to_audio, - name=f"audio_capture", - args=(self.config) + target=listen_to_audio, name=f"audio_capture", args=(self.config,) ) audio_process.daemon = True audio_process.start() diff --git a/frigate/events/audio.py b/frigate/events/audio.py index 662a517c9..4a641feb6 100644 --- a/frigate/events/audio.py +++ b/frigate/events/audio.py @@ -163,9 +163,10 @@ class AudioEventMaintainer(threading.Thread): ) if resp.status_code == 200: - event_id = resp.json["event_id"] + event_id = resp.json()[0]["event_id"] self.detections[label] = { "id": event_id, + "label": label, "last_detection": datetime.datetime.now().timestamp(), } diff --git a/frigate/events/maintainer.py b/frigate/events/maintainer.py index 138586545..01eeea270 100644 --- a/frigate/events/maintainer.py +++ b/frigate/events/maintainer.py @@ -71,7 +71,7 @@ class EventProcessor(threading.Thread): except queue.Empty: continue - logger.error( + logger.debug( f"Event received: {source_type} {event_type} {camera} {event_data['id']}" )