基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择GPT3.5/GPT-4o/GPT-o1/ Claude/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Claude/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
31.4k
stars
8.18k
forks
source link
企业微信应用无法识别语音 #1499
Open
azxcvjj opened 1 year ago
前置确认
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
Linux
运行的python版本是?
python 3.10
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?other
复现步骤 🕹
问题描述 😯
语音相关设置如上,可以正常文字输入,语音输入在后台显示识别不出我说的话或者识别错误,也可以正常语音回复。总的来说就是除了识别不了我说的话,其他一切正常。。。。。
终端日志 📒
[INFO][2023-11-01 18:30:19][wechatcomapp_channel.py:147] - [wechatcom] receive params: <Storage {'nonce': '1699709053', 'timestamp': '1698834618', 'msg_signature': 'f4608954cde39610c8c09b044aea243757d60c9d'}> [DEBUG][2023-11-01 18:30:19][wechatcomapp_channel.py:156] - [wechatcom] receive message:<![CDATA[wwd533b2e4b002d59e]]> <![CDATA[yunmo]]> 1698834618 <![CDATA[voice]]> <![CDATA[1n_uMvKCH7DT39OBYNP-_4aJDAl3aGUXbIh2CwyAfzadWyPqbPlhZc7ECmSFv6bjp]]> <![CDATA[amr]]> 7296439129138635565 1000002 , msg= VoiceMessage({'ToUserName': 'wwd533b2e4b002d59e', 'FromUserName': 'yunmo', 'CreateTime': '1698834618', 'MsgType': 'voice', 'MediaId': '1n_uMvKCH7DT39OBYNP-_4aJDAl3aGUXbIh2CwyAfzadWyPqbPlhZc7ECmSFv6bjp', 'Format': 'amr', 'MsgId': '7296439129138635565', 'AgentID': '1000002'})
[DEBUG][2023-11-01 18:30:19][chat_channel.py:326] - [WX] consume context: Context(type=VOICE, content=tmp/1n_uMvKCH7DT39OBYNP-_4aJDAl3aGUXbIh2CwyAfzadWyPqbPlhZc7ECmSFv6bjp.amr, kwargs={'isgroup': False, 'msg': <channel.wechatcom.wechatcomapp_message.WechatComAppMessage object at 0x7f4562772050>, 'origin_ctype': <ContextType.VOICE: 2>, 'openai_api_key': None, 'gpt_model': None, 'session_id': 'yunmo', 'receiver': 'yunmo', 'desire_rtype': <ReplyType.VOICE: 2>})
[DEBUG][2023-11-01 18:30:19][chat_channel.py:153] - [WX] ready to handle context: Context(type=VOICE, content=tmp/1n_uMvKCH7DT39OBYNP-_4aJDAl3aGUXbIh2CwyAfzadWyPqbPlhZc7ECmSFv6bjp.amr, kwargs={'isgroup': False, 'msg': <channel.wechatcom.wechatcomapp_message.WechatComAppMessage object at 0x7f4562772050>, 'origin_ctype': <ContextType.VOICE: 2>, 'openai_api_key': None, 'gpt_model': None, 'session_id': 'yunmo', 'receiver': 'yunmo', 'desire_rtype': <ReplyType.VOICE: 2>})
[DEBUG][2023-11-01 18:30:19][plugin_manager.py:187] - Plugin GODCMD triggered by event Event.ON_HANDLE_CONTEXT
[DEBUG][2023-11-01 18:30:19][plugin_manager.py:187] - Plugin KEYWORD triggered by event Event.ON_HANDLE_CONTEXT
[DEBUG][2023-11-01 18:30:19][plugin_manager.py:187] - Plugin BANWORDS triggered by event Event.ON_HANDLE_CONTEXT
[DEBUG][2023-11-01 18:30:19][plugin_manager.py:187] - Plugin LINKAI triggered by event Event.ON_HANDLE_CONTEXT
[DEBUG][2023-11-01 18:30:19][plugin_manager.py:187] - Plugin TOOL triggered by event Event.ON_HANDLE_CONTEXT
[DEBUG][2023-11-01 18:30:19][plugin_manager.py:187] - Plugin ROLE triggered by event Event.ON_HANDLE_CONTEXT
[DEBUG][2023-11-01 18:30:19][plugin_manager.py:187] - Plugin DUNGEON triggered by event Event.ON_HANDLE_CONTEXT
[DEBUG][2023-11-01 18:30:19][plugin_manager.py:187] - Plugin HELLO triggered by event Event.ON_HANDLE_CONTEXT
[DEBUG][2023-11-01 18:30:19][plugin_manager.py:187] - Plugin FINISH triggered by event Event.ON_HANDLE_CONTEXT
[DEBUG][2023-11-01 18:30:19][chat_channel.py:173] - [WX] ready to handle context: type=VOICE, content=tmp/1n_uMvKCH7DT39OBYNP-_4aJDAl3aGUXbIh2CwyAfzadWyPqbPlhZc7ECmSFv6bjp.amr
[DEBUG][2023-11-01 18:30:19][baidu_voice.py:63] - [Baidu] voice file name=tmp/1n_uMvKCH7DT39OBYNP-_4aJDAl3aGUXbIh2CwyAfzadWyPqbPlhZc7ECmSFv6bjp.wav
[INFO][2023-11-01 18:30:20][baidu_voice.py:67] - 百度语音识别到了:['我想知道。']