The steps to configure the AI-Chatbox development environment are as follows:
- Installing the Rust on ESP Environment: Refer to the official guide (Rust on ESP) for installation.
- Installing the Python Environment: Used to run the Vosk speech-to-text service.
- Download Vosk Chinese Model: Download from the Vosk website
vosk-model-cn-0.22.zip
If the model is not compressed, extract it to a local directory and copy the model files to the root directory of the SD card. - Installing Python dependencies: Run
pip install vosk flask flask-cors
. Ensure that the Rust environment is configured and enter the ESPUP environment. - Cloning Project Warehouse: By
git clone https://github.com/paul356/ai-chatbox.git
Get the code.
This answer comes from the articleAI-Chatbox: Speech-to-Text Intelligent Dialogue Project based on ESP32S3The