Skip to content

Commit

Permalink
Merge pull request #2163 from 6vision/wechatcom_app
Browse files Browse the repository at this point in the history
Ensure compatibility for /wxcomapp URL with trailing slash
  • Loading branch information
Saboteur7 authored Jul 19, 2024
2 parents 446e94d + 3e4969e commit 3aa571a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion channel/wechatcom/wechatcomapp_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self):

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))
Expand Down
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
"group_speech_recognition": False, # 是否开启群组语音识别
"voice_reply_voice": False, # 是否使用语音回复语音,需要设置对应语音合成引擎的api key
"always_reply_voice": False, # 是否一直使用语音回复
"voice_to_text": "openai", # 语音识别引擎,支持openai,baidu,google,ali,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配置, 使用百度语音识别和语音合成时需要
Expand Down

0 comments on commit 3aa571a

Please sign in to comment.