🔊 It's a simple voice assistant which base on RasPi4B、Snowboy and Baidu ASR, Please refer to This airticle if you want to know more detail info about it.
This Project Forked From : https://github.com/passerma/voiceAssistant Thanks A Lot bro ~
Raspberry Pi 4B 4GB
Python 3.7apschedulerpython3-pyaudioswiglibatlas-base-devbaidu-aipBaidu AIP SDK( aip-python-sdk-2.2.15 )
- the first step : install the dependencies of Wake-on-voice
sudo apt-get install python3-pyaudiosudo apt-get install swigsudo apt-get install libatlas-base-devYou need to change the fifth line of code :
from * import snowboydetecttoimport snowboydetectin thesnowboy/examples/Python3/snowboydecoder.pyafter you installed the dependencies of Wake-on-voice successfully.
- the second step : install the snowboy project
git clone https://github.com/Kitt-AI/snowboy.gitcd snowboy/swig/Python3 && makelet's execute the following command to test it whether installed successfully.
cd snowboy/examples/Python3
python3.7 demo.py resources/models/snowboy.umdlThen speak the world of Wake-on-voice : snowboy,Verify installed successfully if you hear this sound is similar to : D~
- the third step : git clone this project
git clone https://github.com/raspberry-pi-org/voiceAssistant.git- the fourth step : install some dependencies of this project needed
$ pip3 install apscheduler$ cd aip-python-sdk-2.2.15$ pip3 install baidu-aip$ python3.7 setup.py install-
The fifth step : open the
config/apiConfig.pyfile and add yourBaidu APIandServerChanconfiguration information into it. -
The last step : run it and enjoy it bro
# the word of Wake-on-voice is : snowboy
$ python3.7 voiceAssistant.pyIf the program throw a error info such as [Errno -9985] Device unavailable ...,Please fix it by the following command !
# install the pulseaudio
sudo apt-get install pulseaudio
# start it
pulseaudio --start- Play Music
- System Data
- Weather Data
- Hot Top Of Weibo.com
- Hot Event Of Baidu.com
- Movice Data Of Douban.com
- Movice Data Of Maoyan.com
- Universal Counting Leader
Thanks for your contribution if you want to add some funny or useful plugins into it.