Fix startup issues

This commit is contained in:
Nick Mowen 2023-06-18 13:42:15 -06:00
parent 10e194b0d1
commit 7e1ca34fc6
2 changed files with 4 additions and 3 deletions

View File

@ -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:

View File

@ -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",