-
Notifications
You must be signed in to change notification settings - Fork 19
安装&使用
Lanzhijiang edited this page Apr 10, 2021
·
33 revisions
- 树莓派3b
- 麦克风(阵列也好{respeaker的请注意,要安装驱动},USB也好)
- 音响(AUX)
- raspbian
- 其它系统不知道,可以自己实验一下,没准搞出来一个xiaolan-ubuntu版
- 简便安装法:(推荐,设置好一切,包括开机自启)
- cd /home/pi/xiaolan
- git clone https://github.com/xiaoland/xiaolan.git
- su root(如果没有启用root账户,百度:树莓派启用root账户)
- chmod 777 /home/pi/xiaolan/memory_center/more/install_all.sh
- cd /home/pi/xiaolan/more
- ./install_all.sh
- 通用安装法:
- sudo apt-get install pulseaudio
- sudo apt-get install python3.6 python3-pip
- sudo apt-get install python3-dev python3-pyaudio
- su root
- pip install demjson requests
- pip install MusicBoxApi==1.0.4
- sudo apt-get install libatlas-base-dev
- wget http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz
- tar -zxvf pa_stable_v190600_20161030.tgz -C /home/pi/
- sudo apt install libasound-dev
- cd /home/pi/portaudio
- ./configure
- make
- sudo make install
- cd /home/pi/
- git clone https://github.com/xiaoland/xiaolan.git(使用简便安装法忽略这里)
- cd /home/pi/xiaolan
- python xldo.py
- 开机自启动:(使用简便安装法无需设置)
- su root
- cp /home/pi/xiaolan/memory_center/more/autostartxl /etc/init.d/
- chmod +777 /etc/init.d/autostartxl
- sudo update-rc.d autostartxl defaults
- 语音唤醒(根据您设置的唤醒词)
- 在欢迎音播放完之后就可以开始使用了
- 说出你特定的唤醒词即可唤醒,提示音之后说出指令(默认唤醒词:alexa)