espressif / esp-sr

Speech recognition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

casitelwithdean opened this issue · comments

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

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

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!