From a3abfb987d6f930946dded060e23c8394529ac88 Mon Sep 17 00:00:00 2001 From: 6vision Date: Mon, 15 Jul 2024 18:50:38 +0800 Subject: [PATCH 1/2] update --- config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 26f073d..cd778f0 100644 --- a/config.py +++ b/config.py @@ -95,8 +95,8 @@ available_setting = { "group_speech_recognition": False, # 是否开启群组语音识别 "voice_reply_voice": False, # 是否使用语音回复语音,需要设置对应语音合成引擎的api key "always_reply_voice": False, # 是否一直使用语音回复 - "voice_to_text": "openai", # 语音识别引擎,支持openai,baidu,google,azure - "text_to_voice": "openai", # 语音合成引擎,支持openai,baidu,google,pytts(offline),ali,azure,elevenlabs,edge(online) + "voice_to_text": "openai", # 语音识别引擎,支持openai,baidu,google,azure,xunfei + "text_to_voice": "openai", # 语音合成引擎,支持openai,baidu,google,azure,xunfei,pytts(offline),ali,elevenlabs,edge(online) "text_to_voice_model": "tts-1", "tts_voice_id": "alloy", # baidu 语音api配置, 使用百度语音识别和语音合成时需要 From 29490741fde9e719ae11920a5d6fffcae5623253 Mon Sep 17 00:00:00 2001 From: 6vision Date: Thu, 18 Jul 2024 23:21:45 +0800 Subject: [PATCH 2/2] Ensure compatibility for /wxcomapp URL with trailing slash --- channel/wechatcom/wechatcomapp_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel/wechatcom/wechatcomapp_channel.py b/channel/wechatcom/wechatcomapp_channel.py index 1a08596..e403850 100644 --- a/channel/wechatcom/wechatcomapp_channel.py +++ b/channel/wechatcom/wechatcomapp_channel.py @@ -44,7 +44,7 @@ class WechatComAppChannel(ChatChannel): def startup(self): # start message listener - urls = ("/wxcomapp", "channel.wechatcom.wechatcomapp_channel.Query") + urls = ("/wxcomapp/?", "channel.wechatcom.wechatcomapp_channel.Query") app = web.application(urls, globals(), autoreload=False) port = conf().get("wechatcomapp_port", 9898) web.httpserver.runsimple(app.wsgifunc(), ("0.0.0.0", port))