wzpan / wukong-robot

🤖 wukong-robot 是一个简单、灵活、优雅的中文语音对话机器人/智能音箱项目,支持ChatGPT多轮对话能力,还可能是首个支持脑机交互的开源智能音箱项目。
https://wukong.hahack.com/
MIT License
6.33k stars 1.34k forks source link

ValueError: access_key should be a non-empty string. #323

Open hfasi opened 7 months ago

hfasi commented 7 months ago

安装方式

手动安装

操作系统

Ubuntu22.04

离线唤醒相关

问题描述

具体说明下问题 ValueError: access_key should be a non-empty string. 请问在哪里修改access_key

具体log如下: Traceback (most recent call last): File "/home/rob/github/wukong/wukong-robot/wukong.py", line 188, in wukong.run() File "/home/rob/github/wukong/wukong-robot/wukong.py", line 95, in run detector.initDetector(self) File "/home/rob/github/wukong/wukong-robot/robot/detector.py", line 28, in initDetector porcupine = pvporcupine.create( File "/home/rob/anaconda3/envs/wukong/lib/python3.9/site-packages/pvporcupine/_factory.py", line 69, in create return Porcupine( File "/home/rob/anaconda3/envs/wukong/lib/python3.9/site-packages/pvporcupine/_porcupine.py", line 143, in init raise ValueError("access_key should be a non-empty string.") ValueError: access_key should be a non-empty string.

wzpan commented 6 months ago
image

access_key 需要填写。

vdogmcgee commented 5 months ago

请问一下填写access key的路径在哪里呢? 以及默认的唤醒词是什么呢?

vdogmcgee commented 5 months ago

楼主能分享下你在ubuntu22.04手动安装的步骤吗,我照着官方的教程死活装不上,swig那里一直提示我找不到目录,感谢!

litte-lucky-star commented 1 month ago
图像

access_key 需要填写。

屏幕截图 2024-09-30 163714 大佬为啥我填完access key 还是报错File "/usr/local/lib/python3.9/dist-packages/pvporcupine/_porcupine.py", line 158, in init raise IOError("Couldn't find keyword file at '%s'." % x)

DT-stone commented 3 weeks ago
图像

access_key需要填写。

屏幕截图 2024-09-30 163714 大佬为啥我填完access key还是报错File "/usr/local/lib/python3.9/dist-packages/pvporcupine/_porcupine.py", line 158, in init raise IOError("Couldn't find keywords file在“%s”。" % x)

老哥hello-bing_en_raspberry-pi_v3_0_0.ppn 找不到的问题解决了吗

SilaLiu commented 6 days ago

楼主能分享下你在ubuntu22.04手动安装的步骤吗,我照着官方的教程死活装不上,swig那里一直提示我找不到目录,感谢!

这个要源码编译一个

SilaLiu commented 6 days ago
image

access_key 需要填写。

图像

access_key 需要填写。

屏幕截图 2024-09-30 163714 大佬为啥我填完access key 还是报错File "/usr/local/lib/python3.9/dist-packages/pvporcupine/_porcupine.py", line 158, in init raise IOError("Couldn't find keyword file at '%s'." % x)

我也是这样的,请问大佬解决了吗