Skip to content

Commit 3aa571a

Browse files
authored
Merge pull request #2163 from 6vision/wechatcom_app
Ensure compatibility for /wxcomapp URL with trailing slash
2 parents 446e94d + 3e4969e commit 3aa571a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

channel/wechatcom/wechatcomapp_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self):
4444

4545
def startup(self):
4646
# start message listener
47-
urls = ("/wxcomapp", "channel.wechatcom.wechatcomapp_channel.Query")
47+
urls = ("/wxcomapp/?", "channel.wechatcom.wechatcomapp_channel.Query")
4848
app = web.application(urls, globals(), autoreload=False)
4949
port = conf().get("wechatcomapp_port", 9898)
5050
web.httpserver.runsimple(app.wsgifunc(), ("0.0.0.0", port))

config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
"group_speech_recognition": False, # 是否开启群组语音识别
9696
"voice_reply_voice": False, # 是否使用语音回复语音,需要设置对应语音合成引擎的api key
9797
"always_reply_voice": False, # 是否一直使用语音回复
98-
"voice_to_text": "openai", # 语音识别引擎,支持openai,baidu,google,ali,azure
99-
"text_to_voice": "openai", # 语音合成引擎,支持openai,baidu,google,pytts(offline),ali,azure,elevenlabs,edge(online)
98+
"voice_to_text": "openai", # 语音识别引擎,支持openai,baidu,google,azure,xunfei
99+
"text_to_voice": "openai", # 语音合成引擎,支持openai,baidu,google,azure,xunfei,pytts(offline),ali,elevenlabs,edge(online)
100100
"text_to_voice_model": "tts-1",
101101
"tts_voice_id": "alloy",
102102
# baidu 语音api配置, 使用百度语音识别和语音合成时需要

0 commit comments

Comments
 (0)