From fedb6f2da2f2e7edb479ec479a2f9698b8e6da74 Mon Sep 17 00:00:00 2001 From: CGD <3030332422@qq.com> Date: Tue, 10 Jun 2025 16:38:21 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BC=98=E5=8C=96=E2=80=9C=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=94=A4=E9=86=92=E8=AF=8D=E5=9B=9E=E5=A4=8D=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E2=80=9D=E4=B8=AD=E7=9A=84=E8=BF=87=E6=BB=A4=E8=A1=A8?= =?UTF-8?q?=E6=83=85=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/utils/wakeup_word.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/xiaozhi-server/core/utils/wakeup_word.py b/main/xiaozhi-server/core/utils/wakeup_word.py index fe07b41c..8a7a96a0 100644 --- a/main/xiaozhi-server/core/utils/wakeup_word.py +++ b/main/xiaozhi-server/core/utils/wakeup_word.py @@ -109,8 +109,8 @@ class WakeupWordsConfig: def update_wakeup_response(self, voice: str, file_path: str, text: str): """更新唤醒词回复配置""" try: - # 过滤表情字符 - filtered_text = re.sub(r'[\U0001F600-\U0001F64F]', '', text) + # 过滤表情符号 + filtered_text = re.sub(r'[\U0001F600-\U0001F64F\U0001F900-\U0001F9FF]', '', text) config = self._load_config() voice_hash = hashlib.md5(voice.encode()).hexdigest()