From d2a9057dde13de8032cb45d83a49f35520180b46 Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Mon, 17 Nov 2025 20:17:08 -0800 Subject: [PATCH] Update config.py Updated for the new soundcard library --- linux_voice_assistant/config.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/linux_voice_assistant/config.py b/linux_voice_assistant/config.py index 56a698f..03da0c2 100644 --- a/linux_voice_assistant/config.py +++ b/linux_voice_assistant/config.py @@ -23,8 +23,7 @@ class WakeWordConfig: model: str = "okay_nabu" stop_model: str = "stop" refractory_seconds: float = 2.0 - oww_melspectrogram_model: str = "wakewords/openWakeWord/melspectrogram.tflite" - oww_embedding_model: str = "wakewords/openWakeWord/embedding_model.tflite" + download_dir: str = "local" # <-- ADDED @dataclass class ESPHomeConfig: @@ -88,10 +87,6 @@ def load_config_from_json(config_path: Path) -> Config: raise # --- Step 2: Create config objects from raw data --- - # This nested loading allows users to omit entire sections (like 'audio') - # and still get the defaults. - - # 'app' is the only required section if "app" not in raw_data: raise ValueError("Configuration file must contain an 'app' section with a 'name'.") @@ -103,7 +98,6 @@ def load_config_from_json(config_path: Path) -> Config: mqtt_config = MqttConfig(**raw_data.get("mqtt", {})) # --- Step 3: Set MQTT 'enabled' flag --- - # If host is provided, automatically enable MQTT if mqtt_config.host: mqtt_config.enabled = True @@ -117,6 +111,5 @@ def load_config_from_json(config_path: Path) -> Config: mqtt=mqtt_config, ) -# Logger is needed for the load function import logging _LOGGER = logging.getLogger(__name__)