|
|
[M10项目] 行空板M10 小智AI 聊天机器人 |
|
Traceback (most recent call last): File "/root/py-xiaozhi.py", line 372, in <module> run() File "/root/py-xiaozhi.py", line 357, in run mqttc = mqtt.Client(callback_api_version=mqtt.CallbackAPIVersion.VERSION2, client_id=mqtt_info['client_id']) AttributeError: module 'paho.mqtt.client' has no attribute 'CallbackAPIVersion' 老师,运行时会有这样的提示,怎么解决呢 |
glwz007 发表于 2025-3-5 08:36 https://makelog.dfrobot.com.cn/article-317341.html 这个链接讲的很清楚 |
|
你好,1.使用行空板上A、B键,实现开始录音、停止录音,与“小智”进行对话。案例出现问题如下如何解决 {"mqtt":{"endpoint":"mqtt.xiaozhi.me","client_id":"GID_test@@@84_36_3c_fa_22_a7@@@","username":"eyJpcCI6IjExNy4xMy42Ni4zIn0=","password":"MONM5CUJGCZFbyXMDsXKjlIxz9Currr1jQFB2BoU1XU=","publish_topic":"device-server","subscribe_topic":"null"},"websocket":{"url":"wss://api.tenclass.net/xiaozhi/v1/","token":"test-token"},"server_time":{"timestamp":1773289889275,"timezone_offset":480},"firmware":{"version":"1.9.4","url":"https://xiaozhi-voice-assistant.oss-cn-shenzhen.aliyuncs.com/firmwares/v1.9.4_bread-compact-wifi/xiaozhi.bin"}} Traceback (most recent call last): File "/root/mindplus/cache/py-xiaozhi.mp/录音.py", line 373, in <module> run() File "/root/mindplus/cache/py-xiaozhi.mp/录音.py", line 358, in run mqttc = mqtt.Client(callback_api_version=mqtt.CallbackAPIVersion.VERSION2, client_id=mqtt_info['client_id']) |
沪公网安备31011502402448© 2013-2026 Comsenz Inc. Powered by Discuz! X3.4 Licensed