Skip to content

Latest commit

 

History

History
 
 

en_speech_commands_recognition

English Speech Commands Recognition

(See the README.md file in the upper level 'examples' directory for more information about examples.)

How to use this example

Additional Hardware Required

- A Speaker

Configure, Build and Flash

set-target
idf.py set-target esp32s3
configure

Select the default sdkconfig according to the development board module

For example:

cp sdkconfig.defaults.esp32s3 sdkconfig
build&flash

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-].)

Modify speech commands

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