Support multiple wake words

This commit is contained in:
Michael Hansen
2025-09-15 11:29:28 -05:00
parent 2c937e3cb3
commit e26864a191
4 changed files with 55 additions and 24 deletions
+3 -1
View File
@@ -36,7 +36,7 @@ class ServerState:
audio_queue: "Queue[Optional[bytes]]"
entities: "List[ESPHomeEntity]"
available_wake_words: "Dict[str, AvailableWakeWord]"
wake_word: "MicroWakeWord"
wake_words: "Dict[str, MicroWakeWord]"
stop_word: "MicroWakeWord"
music_player: "MpvMediaPlayer"
tts_player: "MpvMediaPlayer"
@@ -44,8 +44,10 @@ class ServerState:
timer_finished_sound: str
preferences: Preferences
preferences_path: Path
libtensorflowlite_c_path: Path
media_player_entity: "Optional[MediaPlayerEntity]" = None
satellite: "Optional[VoiceSatelliteProtocol]" = None
wake_words_changed: bool = False
def save_preferences(self) -> None:
"""Save preferences as JSON."""