Iva, a "fake robot" for family parenting, converts voice to command actions, uses Raspberry Pi + TV, and realizes children's self-discipline tables/primary school arithmetic problems/random sketches, etc., based on Baidu AI development platform, speech recognition, NLP matching Instructions support "plug-in" development [flask+sqlite+weui, technical foundation, easy to develop, consider opening a vue branch in the future], this is a small platform, you can create content pages you like.
Notice
! ! ! Please apply for your own Baidu AI application key, the method is as follows (installation tutorial)! ! !
Some people don’t change their Baidu keys and use up all my daily PVs. I strongly condemn them.
My level is limited, my ability is average, the project is not difficult, you can do it too.
For local deployment and operation documentation, see the project Wiki.
Installation tutorial, see Wiki
1. pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
2. The Google driver file used by selenium needs to be replaced with the one corresponding to your local chrome, currently chrome84, download address: choose different here
3. After downloading the chromedriver file, do not change the file name, just keep it as chromedriver or chromedriver.exe;
4. Replace your own Baidu AI key (Application Guide), and modify the configuration in the asr/configs.py and nlp/configs.py files (they belong to two different applications in Baidu).
Instructions for use (program startup), see Wiki
1. python3.6 web.py
2. python3.6 yiwa.py
3. After the startup is correct, you can speak into your microphone. Currently, it supports commands: return to the homepage, refresh commands, display all commands, restart, etc.;
Local development, see Wiki
1. It is best to develop based on Linux-like systems (Debian, Ubuntu, Fedora, MacOS)
2. A Flask-based plug-in page can be developed. The plug-in is packaged separately and placed in the apps folder. The plug-in must contain the configs.py file and specify the necessary parameters: APPID: str, APPNAME: str, COMMANDS: dict
3. The __init__.py file of the plug-in must import other flask page files and refer to the existing plug-in package.
4. Put the static files of the plug-in package into their respective packages.
5. Agreement
Plug-ins must be placed in the apps folder as a separate folder
The root directory of the plug-in folder must contain the self-introduction configuration file, configs.py file, at least: appid, appname,