espressif / esp-sr

Speech recognition
Other
571 stars 106 forks source link

How to online switching of Chinese and English Speech Command Recognition? (AIS-1008) #48

Closed casitelwithdean closed 1 year ago

casitelwithdean commented 2 years ago

I am using esp32-s3,is there a way to switching of Chinese and English Speech Command Recognition online ?Thanks!

feizi commented 2 years ago

Yes, you can refer to esp-box to switch speech commands recognition model online.
The basic steps is as follows:

  1. Select Enghlish and Chinese model in sdkconfig to load
  2. Use char *mn_name = esp_srmodel_filter(models, ESP_MN_PREFIX, ESP_MN_ENGLISH); or char *mn_name = esp_srmodel_filter(models, ESP_MN_PREFIX, ESP_MN_CHINESE); to get English or Chinese model name
  3. Get multinet handle from model name by esp_mn_iface_t *multinet = esp_mn_handle_from_name(mn_name);
  4. Create, Destroy or Detect by multinet handle and model name
casitelwithdean commented 2 years ago

Yes, you can refer to esp-box to switch speech commands recognition model online. The basic steps is as follows:

  1. Select Enghlish and Chinese model in sdkconfig to load
  2. Use char *mn_name = esp_srmodel_filter(models, ESP_MN_PREFIX, ESP_MN_ENGLISH); or char *mn_name = esp_srmodel_filter(models, ESP_MN_PREFIX, ESP_MN_CHINESE); to get English or Chinese model name
  3. Get multinet handle from model name by esp_mn_iface_t *multinet = esp_mn_handle_from_name(mn_name);
  4. Create, Destroy or Detect by multinet handle and model name

thank u!