Skip to content
New issue

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

使用 porcupine 进行离线唤醒出现问题 #347

Open
Lxhnnn opened this issue Jan 13, 2025 · 6 comments
Open

使用 porcupine 进行离线唤醒出现问题 #347

Lxhnnn opened this issue Jan 13, 2025 · 6 comments
Assignees
Labels
operation problem 用户操作问题

Comments

@Lxhnnn
Copy link

Lxhnnn commented Jan 13, 2025

使用 porcupine 进行离线唤醒
Traceback (most recent call last):
File "/home/lh/wukong+/wukong-robot/wukong.py", line 191, in
wukong.run()
File "/home/lh/wukong+/wukong-robot/wukong.py", line 93, in run
detector.initDetector(self)
File "/home/lh/wukong+/wukong-robot/robot/detector.py", line 22, in initDetector
from pvrecorder import PvRecorder
File "/home/lh/miniconda3/envs/wukong/lib/python3.9/site-packages/pvrecorder/init.py", line 12, in
from .pvrecorder import PvRecorder
File "/home/lh/miniconda3/envs/wukong/lib/python3.9/site-packages/pvrecorder/pvrecorder.py", line 20, in
class PvRecorder(object):
File "/home/lh/miniconda3/envs/wukong/lib/python3.9/site-packages/pvrecorder/pvrecorder.py", line 203, in PvRecorder
_LIBRARY = cdll.LoadLibrary(_lib_path.func())
File "/home/lh/miniconda3/envs/wukong/lib/python3.9/site-packages/pvrecorder/pvrecorder.py", line 191, in _lib_path
raise RuntimeError("Current system is not supported.")

@Lxhnnn Lxhnnn added the operation problem 用户操作问题 label Jan 13, 2025
@Lxhnnn
Copy link
Author

Lxhnnn commented Jan 13, 2025

型号:Model : Raspberry Pi 5 Model B Rev 1.0

@Lxhnnn
Copy link
Author

Lxhnnn commented Jan 14, 2025

使用snowby没有任何问题

@Lxhnnn
Copy link
Author

Lxhnnn commented Jan 14, 2025

@wzpan

@ZLVincent
Copy link

我也是这样,问题解决了吗

@zdalone
Copy link

zdalone commented Feb 25, 2025

我是树莓派5(8g版本),执行命令python wukong.py 同样的报错如下:

配置文件/root/.wukong/config.yml不存在,要创建吗?(y/n)y

********************************************************
*          wukong-robot - 中文语音对话机器人           *
*          (c) 2019 潘伟洲 <[email protected]>              *
*               当前版本号:  3.5.3                      *
*     https://github.com/wzpan/wukong-robot.git        *
********************************************************

            后台管理端:http://0.0.0.0:5001
            如需退出,可以按 Ctrl-4 组合键


2025-02-25 10:10:25,510 - robot.ASR - ASR.py - get_engine_by_slug - line 319 - INFO - 使用 baidu-asr ASR 引擎
2025-02-25 10:10:25,511 - robot.AI - AI.py - get_robot_by_slug - line 600 - INFO - 使用 bing 对话机器人
2025-02-25 10:10:25,511 - robot.TTS - TTS.py - get_engine_by_slug - line 469 - INFO - 使用 edge-tts TTS 引擎
2025-02-25 10:10:25,511 - robot.NLU - NLU.py - get_engine_by_slug - line 222 - INFO - 使用 unit NLU 引擎
2025-02-25 10:10:25,514 - robot.plugin_loader - plugin_loader.py - init_plugins - line 57 - INFO - 插件 Camera 已被禁用
2025-02-25 10:10:25,515 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 CleanCache 加载成功 
2025-02-25 10:10:25,516 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Echo 加载成功 
2025-02-25 10:10:25,523 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Email 加载成功 
2025-02-25 10:10:25,524 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Geek 加载成功 
2025-02-25 10:10:25,525 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Gossip 加载成功 
2025-02-25 10:10:25,527 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 LocalPlayer 加载成功 
2025-02-25 10:10:25,528 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Poem 加载成功 
2025-02-25 10:10:25,531 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Reminder 加载成功 
2025-02-25 10:10:25,532 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Volume 加载成功 
2025-02-25 10:10:25,536 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 BaiduMap 加载成功 
2025-02-25 10:10:25,550 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 ControMqtt 加载成功 
2025-02-25 10:10:25,552 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Direction 加载成功 
2025-02-25 10:10:25,555 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 EmailMyPC 加载成功 
2025-02-25 10:10:25,556 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Halt 加载成功 
2025-02-25 10:10:25,558 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Hass 加载成功 
2025-02-25 10:10:25,560 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 HeadlineNews 加载成功 
2025-02-25 10:10:25,561 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Lamp 加载成功 
2025-02-25 10:10:25,650 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 NeteaseMusic 加载成功 
2025-02-25 10:10:25,652 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 RaspberryPiStatus 加载成功 
2025-02-25 10:10:25,653 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Reboot 加载成功 
2025-02-25 10:10:25,654 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 RoadCondition 加载成功 
2025-02-25 10:10:25,656 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SmartMiFan 加载成功 
2025-02-25 10:10:25,657 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SpeakIP 加载成功 
2025-02-25 10:10:25,658 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SpeakTemperature 加载成功 
2025-02-25 10:10:25,659 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 WOL 加载成功 
2025-02-25 10:10:25,660 - robot.plugin_loader - plugin_loader.py - init_plugins - line 57 - INFO - 插件 Weather 已被禁用
2025-02-25 10:10:25,662 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 WeiBo 加载成功 
2025-02-25 10:10:25,663 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 YouDaoFanYi 加载成功 
2025-02-25 10:10:25,664 - 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']
2025-02-25 10:10:25,665 - tzlocal - unix.py - _get_localzone_name - line 142 - WARNING - /etc/timezone is deprecated on Debian, and no longer reliable. Ignoring.
2025-02-25 10:10:25,667 - robot.Conversation - Conversation.py - say - line 398 - INFO - 即将朗读语音:师父 你好!试试对我喊唤醒词叫醒我吧
2025-02-25 10:10:25,667 - robot.Conversation - Conversation.py - _tts - line 305 - INFO - _tts
2025-02-25 10:10:26,910 - robot.TTS - TTS.py - async_get_speech - line 366 - INFO - edge-tts 语音合成成功,合成路径:/home/bigdan/wukong-robot/temp/f25d33bea05f4abd9ee0fb1b318e8489.mp3
2025-02-25 10:10:26,911 - robot.Conversation - Conversation.py - _ttsAction - line 85 - INFO - 第1段TTS合成成功。msg: 试试对我喊唤醒词叫醒我吧
2025-02-25 10:10:26,966 - robot.TTS - TTS.py - async_get_speech - line 366 - INFO - edge-tts 语音合成成功,合成路径:/home/bigdan/wukong-robot/temp/4a7c33a5723540f4ad86385de4051fd1.mp3
2025-02-25 10:10:27,008 - robot.Conversation - Conversation.py - _ttsAction - line 85 - INFO - 第0段TTS合成成功。msg: 师父 你好
2025-02-25 10:10:27,024 - robot.Conversation - Conversation.py - _ttsAction - line 90 - INFO - 即将播放第0段TTS。msg: 师父 你好
2025-02-25 10:10:27,045 - robot.Player - Player.py - playLoop - line 101 - INFO - 开始播放音频:/home/bigdan/wukong-robot/temp/4a7c33a5723540f4ad86385de4051fd1.mp3
2025-02-25 10:10:27,045 - robot.Conversation - Conversation.py - _ttsAction - line 90 - INFO - 即将播放第1段TTS。msg: 试试对我喊唤醒词叫醒我吧
2025-02-25 10:10:27,064 - robot.Player - Player.py - doPlay - line 125 - INFO - 播放完成:/home/bigdan/wukong-robot/temp/4a7c33a5723540f4ad86385de4051fd1.mp3
2025-02-25 10:10:27,066 - robot.Player - Player.py - playLoop - line 101 - INFO - 开始播放音频:/home/bigdan/wukong-robot/temp/f25d33bea05f4abd9ee0fb1b318e8489.mp3
2025-02-25 10:10:27,068 - robot.detector - detector.py - initDetector - line 19 - INFO - 使用 porcupine 进行离线唤醒
2025-02-25 10:10:27,085 - robot.Player - Player.py - doPlay - line 125 - INFO - 播放完成:/home/bigdan/wukong-robot/temp/f25d33bea05f4abd9ee0fb1b318e8489.mp3
Traceback (most recent call last):
  File "/home/bigdan/wukong-robot/wukong.py", line 188, in <module>
    wukong.run()
  File "/home/bigdan/wukong-robot/wukong.py", line 95, in run
    detector.initDetector(self)
  File "/home/bigdan/wukong-robot/robot/detector.py", line 22, in initDetector
    from pvrecorder import PvRecorder
  File "/usr/local/lib/python3.11/dist-packages/pvrecorder/__init__.py", line 12, in <module>
    from .pvrecorder import PvRecorder
  File "/usr/local/lib/python3.11/dist-packages/pvrecorder/pvrecorder.py", line 20, in <module>
    class PvRecorder(object):
  File "/usr/local/lib/python3.11/dist-packages/pvrecorder/pvrecorder.py", line 203, in PvRecorder
    _LIBRARY = cdll.LoadLibrary(_lib_path.__func__())
                                ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pvrecorder/pvrecorder.py", line 191, in _lib_path
    raise RuntimeError("Current system is not supported.")
RuntimeError: Current system is not supported.

@zdalone
Copy link

zdalone commented Feb 25, 2025

我是树莓派5(8g版本),执行命令python wukong.py 同样的报错如下:

配置文件/root/.wukong/config.yml不存在,要创建吗?(y/n)y

********************************************************
*          wukong-robot - 中文语音对话机器人           *
*          (c) 2019 潘伟洲 <[email protected]>              *
*               当前版本号:  3.5.3                      *
*     https://github.com/wzpan/wukong-robot.git        *
********************************************************

            后台管理端:http://0.0.0.0:5001
            如需退出,可以按 Ctrl-4 组合键


2025-02-25 10:10:25,510 - robot.ASR - ASR.py - get_engine_by_slug - line 319 - INFO - 使用 baidu-asr ASR 引擎
2025-02-25 10:10:25,511 - robot.AI - AI.py - get_robot_by_slug - line 600 - INFO - 使用 bing 对话机器人
2025-02-25 10:10:25,511 - robot.TTS - TTS.py - get_engine_by_slug - line 469 - INFO - 使用 edge-tts TTS 引擎
2025-02-25 10:10:25,511 - robot.NLU - NLU.py - get_engine_by_slug - line 222 - INFO - 使用 unit NLU 引擎
2025-02-25 10:10:25,514 - robot.plugin_loader - plugin_loader.py - init_plugins - line 57 - INFO - 插件 Camera 已被禁用
2025-02-25 10:10:25,515 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 CleanCache 加载成功 
2025-02-25 10:10:25,516 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Echo 加载成功 
2025-02-25 10:10:25,523 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Email 加载成功 
2025-02-25 10:10:25,524 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Geek 加载成功 
2025-02-25 10:10:25,525 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Gossip 加载成功 
2025-02-25 10:10:25,527 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 LocalPlayer 加载成功 
2025-02-25 10:10:25,528 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Poem 加载成功 
2025-02-25 10:10:25,531 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Reminder 加载成功 
2025-02-25 10:10:25,532 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Volume 加载成功 
2025-02-25 10:10:25,536 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 BaiduMap 加载成功 
2025-02-25 10:10:25,550 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 ControMqtt 加载成功 
2025-02-25 10:10:25,552 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Direction 加载成功 
2025-02-25 10:10:25,555 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 EmailMyPC 加载成功 
2025-02-25 10:10:25,556 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Halt 加载成功 
2025-02-25 10:10:25,558 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Hass 加载成功 
2025-02-25 10:10:25,560 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 HeadlineNews 加载成功 
2025-02-25 10:10:25,561 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Lamp 加载成功 
2025-02-25 10:10:25,650 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 NeteaseMusic 加载成功 
2025-02-25 10:10:25,652 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 RaspberryPiStatus 加载成功 
2025-02-25 10:10:25,653 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 Reboot 加载成功 
2025-02-25 10:10:25,654 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 RoadCondition 加载成功 
2025-02-25 10:10:25,656 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SmartMiFan 加载成功 
2025-02-25 10:10:25,657 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SpeakIP 加载成功 
2025-02-25 10:10:25,658 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 SpeakTemperature 加载成功 
2025-02-25 10:10:25,659 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 WOL 加载成功 
2025-02-25 10:10:25,660 - robot.plugin_loader - plugin_loader.py - init_plugins - line 57 - INFO - 插件 Weather 已被禁用
2025-02-25 10:10:25,662 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 WeiBo 加载成功 
2025-02-25 10:10:25,663 - robot.plugin_loader - plugin_loader.py - init_plugins - line 61 - INFO - 插件 YouDaoFanYi 加载成功 
2025-02-25 10:10:25,664 - 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']
2025-02-25 10:10:25,665 - tzlocal - unix.py - _get_localzone_name - line 142 - WARNING - /etc/timezone is deprecated on Debian, and no longer reliable. Ignoring.
2025-02-25 10:10:25,667 - robot.Conversation - Conversation.py - say - line 398 - INFO - 即将朗读语音:师父 你好!试试对我喊唤醒词叫醒我吧
2025-02-25 10:10:25,667 - robot.Conversation - Conversation.py - _tts - line 305 - INFO - _tts
2025-02-25 10:10:26,910 - robot.TTS - TTS.py - async_get_speech - line 366 - INFO - edge-tts 语音合成成功,合成路径:/home/bigdan/wukong-robot/temp/f25d33bea05f4abd9ee0fb1b318e8489.mp3
2025-02-25 10:10:26,911 - robot.Conversation - Conversation.py - _ttsAction - line 85 - INFO - 第1段TTS合成成功。msg: 试试对我喊唤醒词叫醒我吧
2025-02-25 10:10:26,966 - robot.TTS - TTS.py - async_get_speech - line 366 - INFO - edge-tts 语音合成成功,合成路径:/home/bigdan/wukong-robot/temp/4a7c33a5723540f4ad86385de4051fd1.mp3
2025-02-25 10:10:27,008 - robot.Conversation - Conversation.py - _ttsAction - line 85 - INFO - 第0段TTS合成成功。msg: 师父 你好
2025-02-25 10:10:27,024 - robot.Conversation - Conversation.py - _ttsAction - line 90 - INFO - 即将播放第0段TTS。msg: 师父 你好
2025-02-25 10:10:27,045 - robot.Player - Player.py - playLoop - line 101 - INFO - 开始播放音频:/home/bigdan/wukong-robot/temp/4a7c33a5723540f4ad86385de4051fd1.mp3
2025-02-25 10:10:27,045 - robot.Conversation - Conversation.py - _ttsAction - line 90 - INFO - 即将播放第1段TTS。msg: 试试对我喊唤醒词叫醒我吧
2025-02-25 10:10:27,064 - robot.Player - Player.py - doPlay - line 125 - INFO - 播放完成:/home/bigdan/wukong-robot/temp/4a7c33a5723540f4ad86385de4051fd1.mp3
2025-02-25 10:10:27,066 - robot.Player - Player.py - playLoop - line 101 - INFO - 开始播放音频:/home/bigdan/wukong-robot/temp/f25d33bea05f4abd9ee0fb1b318e8489.mp3
2025-02-25 10:10:27,068 - robot.detector - detector.py - initDetector - line 19 - INFO - 使用 porcupine 进行离线唤醒
2025-02-25 10:10:27,085 - robot.Player - Player.py - doPlay - line 125 - INFO - 播放完成:/home/bigdan/wukong-robot/temp/f25d33bea05f4abd9ee0fb1b318e8489.mp3
Traceback (most recent call last):
  File "/home/bigdan/wukong-robot/wukong.py", line 188, in <module>
    wukong.run()
  File "/home/bigdan/wukong-robot/wukong.py", line 95, in run
    detector.initDetector(self)
  File "/home/bigdan/wukong-robot/robot/detector.py", line 22, in initDetector
    from pvrecorder import PvRecorder
  File "/usr/local/lib/python3.11/dist-packages/pvrecorder/__init__.py", line 12, in <module>
    from .pvrecorder import PvRecorder
  File "/usr/local/lib/python3.11/dist-packages/pvrecorder/pvrecorder.py", line 20, in <module>
    class PvRecorder(object):
  File "/usr/local/lib/python3.11/dist-packages/pvrecorder/pvrecorder.py", line 203, in PvRecorder
    _LIBRARY = cdll.LoadLibrary(_lib_path.__func__())
                                ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pvrecorder/pvrecorder.py", line 191, in _lib_path
    raise RuntimeError("Current system is not supported.")
RuntimeError: Current system is not supported.

本机pvrecorder版本是1.1.1,升级到1.2.5,报错消失

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
operation problem 用户操作问题
Projects
None yet
Development

No branches or pull requests

4 participants