update:前端增加可配置的本地唤醒词运行时

This commit is contained in:
3030332422
2026-04-14 16:54:37 +08:00
parent 705b5732a6
commit d5b883817c
18 changed files with 1037 additions and 150 deletions
@@ -31,6 +31,7 @@ class AudioPlugin(Plugin):
self.source.stop()
def shutdown(self) -> None:
self.stop()
if self.app is not None:
self.app.audio_source = None
self.source = None
self.app = None
@@ -41,7 +41,8 @@ class WakeWordPlugin(Plugin):
self.detector.stop()
def shutdown(self) -> None:
self.stop()
self.detector = None
self.app = None
def _on_detected(self, wake_word: str, full_text: str) -> None:
if self.app is None: