From 6e63111e631f4885236de0acd5aaf55a10562f3c Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:33:13 -0700 Subject: [PATCH] Implement Volume Persistence Adds a new volume_level: float field to the Preferences dataclass. This creates a dedicated entry in the preferences.json file to store the user's desired volume (from 0.0 to 1.0). --- linux_voice_assistant/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/linux_voice_assistant/models.py b/linux_voice_assistant/models.py index a7a7dfd..2cb22dc 100644 --- a/linux_voice_assistant/models.py +++ b/linux_voice_assistant/models.py @@ -59,6 +59,7 @@ class AvailableWakeWord: @dataclass class Preferences: active_wake_words: List[str] = field(default_factory=list) + volume_level: float = 1.0 # ADD THIS LINE (volume from 0.0 to 1.0) @dataclass