We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
确认已寻找过答案
我已确认在 Github issue 页、常见问题页、文档 中都查找过,没有找到类似问题和资料。我也没有 google / bing/ 百度 / duckduckgo 到相关解答。
安装方式
手动安装
操作系统
ubuntu
离线唤醒相关
如果是离线唤醒相关的问题,是否已确保 carecord temp.wav、aplay temp.wav (Linux) 或 rec temp.wav、play temp.wav (Mac)已正常工作?(注意要求不能带任何其他参数)如果不能,请先配置好麦克风和音响再尝试。
carecord temp.wav
aplay temp.wav
rec temp.wav
play temp.wav
—— 我已确保录音、播放都正常工作才尝试 wukong-robot 。
问题描述
具体说明下问题
wukong-robot - 中文语音对话机器人 *
(c) 2019 潘伟洲 <m@hahack.com> *
当前版本号: 3.5.3 *
https://github.com/wzpan/wukong-robot.git *
后台管理端:http://0.0.0.0:5001 如需退出,可以按 Ctrl-4 组合键
2024-02-25 13:10:40,610 - robot.ASR - ASR.py - get_engine_by_slug - line 295 - INFO - 使用 baidu-asr ASR 引擎 2024-02-25 13:10:40,612 - robot.AI - AI.py - get_robot_by_slug - line 376 - INFO - 使用 unit 对话机器人 2024-02-25 13:10:40,613 - robot.TTS - TTS.py - get_engine_by_slug - line 469 - INFO - 使用 edge-tts TTS 引擎 2024-02-25 13:10:40,614 - robot.NLU - NLU.py - get_engine_by_slug - line 222 - INFO - 使用 unit NLU 引擎 2024-02-25 13:10:40,618 - robot.plugin_loader - plugin_loader.py - init_plugins - line 25 - DEBUG - 检查插件目录:['/home/orangepi/wukong-resp/wukong-robot/plugins', '/home/orangepi/.wukong/contrib', '/home/orangepi/.wukong/custom'] 2024-02-25 13:10:40,625 - robot.plugin_loader - plugin_loader.py - init_plugins - line 57 - INFO - 插件 Camera 已被禁用 2024-02-25 13:10:40,628 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 CleanCache 加载成功 2024-02-25 13:10:40,632 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Echo 加载成功 2024-02-25 13:10:40,647 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Email 加载成功 2024-02-25 13:10:40,652 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Geek 加载成功 2024-02-25 13:10:40,656 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Gossip 加载成功 2024-02-25 13:10:40,661 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 LocalPlayer 加载成功 2024-02-25 13:10:40,665 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Poem 加载成功 2024-02-25 13:10:40,669 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Reminder 加载成功 2024-02-25 13:10:40,674 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Volume 加载成功 2024-02-25 13:10:40,684 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 BaiduMap 加载成功 2024-02-25 13:10:40,715 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 ControMqtt 加载成功 2024-02-25 13:10:40,720 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Direction 加载成功 2024-02-25 13:10:40,725 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 EmailMyPC 加载成功 2024-02-25 13:10:40,729 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Halt 加载成功 2024-02-25 13:10:40,734 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Hass 加载成功 2024-02-25 13:10:40,739 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 HeadlineNews 加载成功 2024-02-25 13:10:40,744 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Lamp 加载成功 2024-02-25 13:10:41,318 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 NeteaseMusic 加载成功 2024-02-25 13:10:41,325 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 RaspberryPiStatus 加载成功 2024-02-25 13:10:41,330 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Reboot 加载成功 2024-02-25 13:10:41,334 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 RoadCondition 加载成功 2024-02-25 13:10:41,339 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SmartMiFan 加载成功 2024-02-25 13:10:41,344 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SpeakIP 加载成功 2024-02-25 13:10:41,348 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SpeakTemperature 加载成功 2024-02-25 13:10:41,353 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 WOL 加载成功 2024-02-25 13:10:41,358 - robot.plugin_loader - plugin_loader.py - init_plugins - line 57 - INFO - 插件 Weather 已被禁用 2024-02-25 13:10:41,365 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 WeiBo 加载成功 2024-02-25 13:10:41,370 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 YouDaoFanYi 加载成功 2024-02-25 13:10:41,375 - robot.Brain - Brain.py - printPlugins - line 54 - INFO - 已激活插件:['cleancache', 'Echo', 'email', 'geek', 'Gossip', 'LocalPlayer', 'poem', 'Reminder', 'Volume', 'BaiduMap', 'mqttPub', 'direction', 'emailmypc', 'halt', 'hass', 'headline_news', 'Lamp', 'NeteaseMusic', 'pi_status', 'reboot', 'roadcondition', 'SmartMiFan', 'speak_ip', 'speak_temperature', 'wol', 'WeiBo', 'youdao'] 2024-02-25 13:10:41,394 - robot.Conversation - Conversation.py - say - line 398 - INFO - 即将朗读语音:师父 你好!试试对我喊唤醒词叫醒我吧 2024-02-25 13:10:41,398 - robot.Conversation - Conversation.py - say - line 404 - DEBUG - tts_count: 2 2024-02-25 13:10:41,399 - robot.Conversation - Conversation.py - _tts - line 305 - INFO - _tts 2024-02-25 13:10:43,096 - robot.TTS - TTS.py - async_get_speech - line 366 - INFO - edge-tts 语音合成成功,合成路径:/home/orangepi/wukong-resp/wukong-robot/temp/e9b947e5467246cd914f525365e72e26.mp3 2024-02-25 13:10:43,103 - robot.Conversation - Conversation.py - _ttsAction - line 85 - INFO - 第1段TTS合成成功。msg: 试试对我喊唤醒词叫醒我吧 2024-02-25 13:10:43,301 - robot.TTS - TTS.py - async_get_speech - line 366 - INFO - edge-tts 语音合成成功,合成路径:/home/orangepi/wukong-resp/wukong-robot/temp/f4e49b9b0b0e4d13bae5678b60401ea6.mp3 2024-02-25 13:10:43,354 - robot.Conversation - Conversation.py - _ttsAction - line 85 - INFO - 第0段TTS合成成功。msg: 师父 你好 2024-02-25 13:10:43,372 - robot.Conversation - Conversation.py - _ttsAction - line 90 - INFO - 即将播放第0段TTS。msg: 师父 你好 2024-02-25 13:10:43,400 - robot.Conversation - Conversation.py - _ttsAction - line 90 - INFO - 即将播放第1段TTS。msg: 试试对我喊唤醒词叫醒我吧 2024-02-25 13:10:43,400 - robot.Player - Player.py - playLoop - line 101 - INFO - 开始播放音频:/home/orangepi/wukong-resp/wukong-robot/temp/f4e49b9b0b0e4d13bae5678b60401ea6.mp3 2024-02-25 13:10:43,401 - robot.Player - Player.py - doPlay - line 116 - DEBUG - Executing play /home/orangepi/wukong-resp/wukong-robot/temp/f4e49b9b0b0e4d13bae5678b60401ea6.mp3 2024-02-25 13:10:43,544 - robot.detector - detector.py - initDetector - line 94 - INFO - 使用 snowboy 进行离线唤醒 2024-02-25 13:10:43,561 - server.server - server.py - start_server - line 494 - CRITICAL - 服务器启动失败: [Errno 98] Address already in use Stack (most recent call last): File "/usr/lib/python3.10/threading.py", line 973, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/orangepi/wukong-resp/wukong-robot/server/server.py", line 499, in t = threading.Thread(target=lambda: start_server(conversation, wukong)) File "/home/orangepi/wukong-resp/wukong-robot/server/server.py", line 494, in start_server logger.critical(f"服务器启动失败: {e}", stack_info=True) 2024-02-25 13:10:43,803 - snowboy - snowboydecoder.py - start - line 349 - DEBUG - detecting... SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats 2024-02-25 13:10:43,960 - robot.detector - detector.py - initDetector - line 113 - CRITICAL - 离线唤醒机制初始化失败: Stack (most recent call last): File "/home/orangepi/wukong-resp/wukong-robot/wukong.py", line 188, in wukong.run() File "/home/orangepi/wukong-resp/wukong-robot/wukong.py", line 95, in run detector.initDetector(self) File "/home/orangepi/wukong-resp/wukong-robot/robot/detector.py", line 113, in initDetector logger.critical(f"离线唤醒机制初始化失败:{e}", stack_info=True) 2024-02-25 13:10:45,349 - robot.Player - Player.py - doPlay - line 125 - INFO - 播放完成:/home/orangepi/wukong-resp/wukong-robot/temp/f4e49b9b0b0e4d13bae5678b60401ea6.mp3 2024-02-25 13:10:45,352 - robot.Player - Player.py - playLoop - line 101 - INFO - 开始播放音频:/home/orangepi/wukong-resp/wukong-robot/temp/e9b947e5467246cd914f525365e72e26.mp3 2024-02-25 13:10:45,354 - robot.Player - Player.py - doPlay - line 116 - DEBUG - Executing play /home/orangepi/wukong-resp/wukong-robot/temp/e9b947e5467246cd914f525365e72e26.mp3 2024-02-25 13:10:48,461 - robot.Player - Player.py - doPlay - line 125 - INFO - 播放完成:/home/orangepi/wukong-resp/wukong-robot/temp/e9b947e5467246cd914f525365e72e26.mp3
The text was updated successfully, but these errors were encountered:
我也遇到同样的问题,我是在Ubuntu22.04上跑的
Sorry, something went wrong.
wzpan
No branches or pull requests
确认已寻找过答案
我已确认在 Github issue 页、常见问题页、文档 中都查找过,没有找到类似问题和资料。我也没有 google / bing/ 百度 / duckduckgo 到相关解答。
安装方式
手动安装
操作系统
ubuntu
离线唤醒相关
如果是离线唤醒相关的问题,是否已确保
carecord temp.wav
、aplay temp.wav
(Linux) 或rec temp.wav
、play temp.wav
(Mac)已正常工作?(注意要求不能带任何其他参数)如果不能,请先配置好麦克风和音响再尝试。—— 我已确保录音、播放都正常工作才尝试 wukong-robot 。
问题描述
具体说明下问题
2024-02-25 13:10:40,610 - robot.ASR - ASR.py - get_engine_by_slug - line 295 - INFO - 使用 baidu-asr ASR 引擎
2024-02-25 13:10:40,612 - robot.AI - AI.py - get_robot_by_slug - line 376 - INFO - 使用 unit 对话机器人
2024-02-25 13:10:40,613 - robot.TTS - TTS.py - get_engine_by_slug - line 469 - INFO - 使用 edge-tts TTS 引擎
2024-02-25 13:10:40,614 - robot.NLU - NLU.py - get_engine_by_slug - line 222 - INFO - 使用 unit NLU 引擎
2024-02-25 13:10:40,618 - robot.plugin_loader - plugin_loader.py - init_plugins - line 25 - DEBUG - 检查插件目录:['/home/orangepi/wukong-resp/wukong-robot/plugins', '/home/orangepi/.wukong/contrib', '/home/orangepi/.wukong/custom']
2024-02-25 13:10:40,625 - robot.plugin_loader - plugin_loader.py - init_plugins - line 57 - INFO - 插件 Camera 已被禁用
2024-02-25 13:10:40,628 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 CleanCache 加载成功
2024-02-25 13:10:40,632 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Echo 加载成功
2024-02-25 13:10:40,647 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Email 加载成功
2024-02-25 13:10:40,652 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Geek 加载成功
2024-02-25 13:10:40,656 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Gossip 加载成功
2024-02-25 13:10:40,661 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 LocalPlayer 加载成功
2024-02-25 13:10:40,665 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Poem 加载成功
2024-02-25 13:10:40,669 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Reminder 加载成功
2024-02-25 13:10:40,674 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Volume 加载成功
2024-02-25 13:10:40,684 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 BaiduMap 加载成功
2024-02-25 13:10:40,715 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 ControMqtt 加载成功
2024-02-25 13:10:40,720 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Direction 加载成功
2024-02-25 13:10:40,725 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 EmailMyPC 加载成功
2024-02-25 13:10:40,729 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Halt 加载成功
2024-02-25 13:10:40,734 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Hass 加载成功
2024-02-25 13:10:40,739 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 HeadlineNews 加载成功
2024-02-25 13:10:40,744 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Lamp 加载成功
2024-02-25 13:10:41,318 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 NeteaseMusic 加载成功
2024-02-25 13:10:41,325 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 RaspberryPiStatus 加载成功
2024-02-25 13:10:41,330 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Reboot 加载成功
2024-02-25 13:10:41,334 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 RoadCondition 加载成功
2024-02-25 13:10:41,339 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SmartMiFan 加载成功
2024-02-25 13:10:41,344 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SpeakIP 加载成功
2024-02-25 13:10:41,348 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SpeakTemperature 加载成功
2024-02-25 13:10:41,353 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 WOL 加载成功
2024-02-25 13:10:41,358 - robot.plugin_loader - plugin_loader.py - init_plugins - line 57 - INFO - 插件 Weather 已被禁用
2024-02-25 13:10:41,365 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 WeiBo 加载成功
2024-02-25 13:10:41,370 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 YouDaoFanYi 加载成功
2024-02-25 13:10:41,375 - robot.Brain - Brain.py - printPlugins - line 54 - INFO - 已激活插件:['cleancache', 'Echo', 'email', 'geek', 'Gossip', 'LocalPlayer', 'poem', 'Reminder', 'Volume', 'BaiduMap', 'mqttPub', 'direction', 'emailmypc', 'halt', 'hass', 'headline_news', 'Lamp', 'NeteaseMusic', 'pi_status', 'reboot', 'roadcondition', 'SmartMiFan', 'speak_ip', 'speak_temperature', 'wol', 'WeiBo', 'youdao']
2024-02-25 13:10:41,394 - robot.Conversation - Conversation.py - say - line 398 - INFO - 即将朗读语音:师父 你好!试试对我喊唤醒词叫醒我吧
2024-02-25 13:10:41,398 - robot.Conversation - Conversation.py - say - line 404 - DEBUG - tts_count: 2
2024-02-25 13:10:41,399 - robot.Conversation - Conversation.py - _tts - line 305 - INFO - _tts
2024-02-25 13:10:43,096 - robot.TTS - TTS.py - async_get_speech - line 366 - INFO - edge-tts 语音合成成功,合成路径:/home/orangepi/wukong-resp/wukong-robot/temp/e9b947e5467246cd914f525365e72e26.mp3
2024-02-25 13:10:43,103 - robot.Conversation - Conversation.py - _ttsAction - line 85 - INFO - 第1段TTS合成成功。msg: 试试对我喊唤醒词叫醒我吧
2024-02-25 13:10:43,301 - robot.TTS - TTS.py - async_get_speech - line 366 - INFO - edge-tts 语音合成成功,合成路径:/home/orangepi/wukong-resp/wukong-robot/temp/f4e49b9b0b0e4d13bae5678b60401ea6.mp3
2024-02-25 13:10:43,354 - robot.Conversation - Conversation.py - _ttsAction - line 85 - INFO - 第0段TTS合成成功。msg: 师父 你好
2024-02-25 13:10:43,372 - robot.Conversation - Conversation.py - _ttsAction - line 90 - INFO - 即将播放第0段TTS。msg: 师父 你好
2024-02-25 13:10:43,400 - robot.Conversation - Conversation.py - _ttsAction - line 90 - INFO - 即将播放第1段TTS。msg: 试试对我喊唤醒词叫醒我吧
2024-02-25 13:10:43,400 - robot.Player - Player.py - playLoop - line 101 - INFO - 开始播放音频:/home/orangepi/wukong-resp/wukong-robot/temp/f4e49b9b0b0e4d13bae5678b60401ea6.mp3
2024-02-25 13:10:43,401 - robot.Player - Player.py - doPlay - line 116 - DEBUG - Executing play /home/orangepi/wukong-resp/wukong-robot/temp/f4e49b9b0b0e4d13bae5678b60401ea6.mp3
2024-02-25 13:10:43,544 - robot.detector - detector.py - initDetector - line 94 - INFO - 使用 snowboy 进行离线唤醒
2024-02-25 13:10:43,561 - server.server - server.py - start_server - line 494 - CRITICAL - 服务器启动失败: [Errno 98] Address already in use
Stack (most recent call last):
File "/usr/lib/python3.10/threading.py", line 973, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/orangepi/wukong-resp/wukong-robot/server/server.py", line 499, in
t = threading.Thread(target=lambda: start_server(conversation, wukong))
File "/home/orangepi/wukong-resp/wukong-robot/server/server.py", line 494, in start_server
logger.critical(f"服务器启动失败: {e}", stack_info=True)
2024-02-25 13:10:43,803 - snowboy - snowboydecoder.py - start - line 349 - DEBUG - detecting...
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
2024-02-25 13:10:43,960 - robot.detector - detector.py - initDetector - line 113 - CRITICAL - 离线唤醒机制初始化失败:
Stack (most recent call last):
File "/home/orangepi/wukong-resp/wukong-robot/wukong.py", line 188, in
wukong.run()
File "/home/orangepi/wukong-resp/wukong-robot/wukong.py", line 95, in run
detector.initDetector(self)
File "/home/orangepi/wukong-resp/wukong-robot/robot/detector.py", line 113, in initDetector
logger.critical(f"离线唤醒机制初始化失败:{e}", stack_info=True)
2024-02-25 13:10:45,349 - robot.Player - Player.py - doPlay - line 125 - INFO - 播放完成:/home/orangepi/wukong-resp/wukong-robot/temp/f4e49b9b0b0e4d13bae5678b60401ea6.mp3
2024-02-25 13:10:45,352 - robot.Player - Player.py - playLoop - line 101 - INFO - 开始播放音频:/home/orangepi/wukong-resp/wukong-robot/temp/e9b947e5467246cd914f525365e72e26.mp3
2024-02-25 13:10:45,354 - robot.Player - Player.py - doPlay - line 116 - DEBUG - Executing play /home/orangepi/wukong-resp/wukong-robot/temp/e9b947e5467246cd914f525365e72e26.mp3
2024-02-25 13:10:48,461 - robot.Player - Player.py - doPlay - line 125 - INFO - 播放完成:/home/orangepi/wukong-resp/wukong-robot/temp/e9b947e5467246cd914f525365e72e26.mp3
The text was updated successfully, but these errors were encountered: