From 7e1ca34fc62f4c55cccb7ce13970e7ced7fc115e Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sun, 18 Jun 2023 13:42:15 -0600 Subject: [PATCH] Fix startup issues --- frigate/app.py | 2 ++ frigate/events/audio.py | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frigate/app.py b/frigate/app.py index e61510f7b..740ff7612 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -397,6 +397,8 @@ class FrigateApp: name=f"audio_capture", args=(self.config, self.event_queue) ) + audio_process.daemon = True + audio_process.start() logger.info(f"Audio process started: {audio_process.pid}") def start_timeline_processor(self) -> None: diff --git a/frigate/events/audio.py b/frigate/events/audio.py index ddaa2c69d..f9d45ea35 100644 --- a/frigate/events/audio.py +++ b/frigate/events/audio.py @@ -19,7 +19,6 @@ from frigate.const import ( AUDIO_SAMPLE_RATE, CACHE_DIR, ) -from frigate.detectors.detection_api import DetectionApi from frigate.object_detection import load_labels from frigate.util import listen @@ -53,8 +52,8 @@ def listen_to_audio(config: FrigateConfig, event_queue: mp.Queue) -> None: AudioEventMaintainer(camera, stop_event) -class AudioTfl(DetectionApi): - def __init__(self, labels): +class AudioTfl(): + def __init__(self): self.labels = load_labels("/audio-labelmap.txt") self.interpreter = Interpreter( model_path="/cpu_audio_model.tflite",