wzpan / dingdang-robot

🤖 叮当是一款可以工作在 Raspberry Pi 上的中文语音对话机器人/智能音箱项目。
http://dingdang.hahack.com
Other
1.86k stars 535 forks source link

网易云音乐两个问题 #120

Closed olive900 closed 6 years ago

olive900 commented 6 years ago

第一歌单、榜单只能放第一首;第二语音命令退出不成功,然后对任何语音无响应。 还有本地music目录有音乐怎么放不出来,顺序、歌单、榜单都不会放本地音乐。 以上都在pi用户下。root用户自启动尝试多种方法均不成功。

wzpan commented 6 years ago

更新了dingdang-contrib没?

wzpan commented 6 years ago

@olive900

root 用户自启动,试试执行如下命令:

sudo -i # 进入 root 用户
ln -s /home/pi/dingdang /root/
ln -s /home/pi/.dingdang /root/
ln -s /home/pi/.asoundrc /root/
wzpan commented 6 years ago

另外再更新下 musicboxapi

sudo pip install --upgrade MusicBoxApi
olive900 commented 6 years ago

以上都试过,root用户可以运行了,播放歌单出错。还是只能播放第一首 Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/home/pi/.dingdang/contrib/NetEaseMusic.py", line 497, in run self.play() File "/home/pi/.dingdang/contrib/NetEaseMusic.py", line 507, in play song = self.playlist[self.idx] IndexError: list index out of range

olive900 commented 6 years ago

跟requirements.txt文件有关吗? MusicBoxApi>=1.0.0 paho-mqtt>=1.3.0 eyeD3>=0.8

olive900 commented 6 years ago

今天抓到出错信息 Socket error Event: 32 Error: 10053. Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(shu) at 21:46:12.

datamonday commented 6 years ago

遇到了同样的问题 还会卡死

datamonday commented 6 years ago

解决了 需要把默认播放本地音乐的选项 设置为false!真的是秒播!作者很给力哈哈哈哈

olive900 commented 6 years ago

真的就这样解决了,感谢 @wzpan ,感谢 @datamonday 。