(See the README.md file in the upper level 'examples' directory for more information about examples.)
- A Speaker
idf.py set-target esp32s3
Select the default sdkconfig according to the development board module
For example:
cp sdkconfig.defaults.esp32s3 sdkconfig
Build the project and flash it to the board, then run the monitor tool to view the output via serial port:
idf.py -b 2000000 flash monitor
(To exit the serial monitor, type Ctrl-]
.)
We recommend using MultiNet6 or newer models.
Here's a simple example to modify speech commands in the code.
You can also modify the default command list, please refer to document for more details.
// MultiNet6
// Note: Please create multinet handle before adding speech commands
esp_mn_commands_clear(); // Clear commands that already exist
esp_mn_commands_add(1, "turn on the light"); // add a command
esp_mn_commands_add(2, "turn off the light"); // add a command
esp_mn_commands_update(); // update commands
multinet->print_active_speech_commands(model_data); // print active commands