How to online switching of Chinese and English Speech Command Recognition? (AIS-1008)
casitelwithdean opened this issue · comments
casitelwithdean commented
I am using esp32-s3,is there a way to switching of Chinese and English Speech Command Recognition online ?Thanks!
Sun Xiangyu commented
Yes, you can refer to esp-box to switch speech commands recognition model online.
The basic steps is as follows:
- Select Enghlish and Chinese model in sdkconfig to load
- Use
char *mn_name = esp_srmodel_filter(models, ESP_MN_PREFIX, ESP_MN_ENGLISH);
orchar *mn_name = esp_srmodel_filter(models, ESP_MN_PREFIX, ESP_MN_CHINESE);
to get English or Chinese model name - Get multinet handle from model name by
esp_mn_iface_t *multinet = esp_mn_handle_from_name(mn_name);
- Create, Destroy or Detect by multinet handle and model name
casitelwithdean commented
Yes, you can refer to esp-box to switch speech commands recognition model online. The basic steps is as follows:
- Select Enghlish and Chinese model in sdkconfig to load
- Use
char *mn_name = esp_srmodel_filter(models, ESP_MN_PREFIX, ESP_MN_ENGLISH);
orchar *mn_name = esp_srmodel_filter(models, ESP_MN_PREFIX, ESP_MN_CHINESE);
to get English or Chinese model name- Get multinet handle from model name by
esp_mn_iface_t *multinet = esp_mn_handle_from_name(mn_name);
- Create, Destroy or Detect by multinet handle and model name
thank u!