mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 17:43:55 +08:00
update:前端增加可配置的本地唤醒词运行时
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user