The following steps need to be completed to configure the AI-Chatbox development environment:
- Hardware preparation: Use the XIAO ESP32S3 Sense development board to ensure that an SD card is connected to store the speech model.
- Installing the Rust environment: Refer to the official guide (Rust on ESP) to install the Rust on ESP toolchain.
- Installing the Python Environment: Used to run the Vosk speech-to-text service.
- Download Vosk Model: Get the Chinese model (vosk-model-cn-0.22.zip) from Vosk official website, unzip it and copy the model file (e.g. mn7_cn) to the root directory of SD card.
- Installation of dependencies: Run
pip install vosk flask flask-cors
Install the Python dependencies and pass thesource $HOME/export-esp.sh
Activate the Rust environment.
This answer comes from the articleAI-Chatbox: Speech-to-Text Intelligent Dialogue Project based on ESP32S3The