Pre-installation
To install wukong-robot on a Raspberry Pi, we recommend using the Docker installation method. First you need to make sure you have a Docker environment installed.
Specific installation steps
- Install Docker:
Execute the following command:sudo apt update
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker - Get the installation script:
Clone the officially provided Raspberry Pi installation script:git clone https://github.com/wzpan/wukong-robot-pi-installer.git
cd wukong-robot-pi-installer
sudo chmod +x pi_installer - Run the installation script:
Execute the install command:sudo ./pi_installer
- Configure the environment:
The first time you run it, you will be prompted to create a configuration file, so it is recommended that you copy the default configuration and modify it:cp static/default.yml ~/.wukong/config.yml
nano ~/.wukong/config.yml - Launching the project:
Execute it in the project root directory:python3 wukong.py
caveat
If you encounter problems during installation, you can check the log files or visit the GitHub Issues page for help. Ensure that the Raspberry Pi's microphone and speakers are working properly, and it is recommended to test the recording and playback features ahead of time.
This answer comes from the articlewukong-robot: a smart speaker project to create personalized Chinese voice conversationsThe