feat(MN_CN): Support MN_CN V5.0

This commit is contained in:
Wang Wang Wang 2021-12-15 14:09:27 +08:00
parent a289a0c70c
commit 3a5acbd583
8 changed files with 12 additions and 2 deletions

View File

@ -141,7 +141,7 @@ endchoice
choice SR_MN_MODE_SEL
prompt "speech commands recognition model"
default SR_MN_CN_MULTINET3_SINGLE_RECOGNITION
default SR_MN_CN_MULTINET5_SINGLE_RECOGNITION
depends on USE_MULTINET
help
Select the model to be used.
@ -174,6 +174,10 @@ choice SR_MN_MODE_SEL
bool "chinese single recognition (MultiNet4)"
depends on SR_MN_CHINESE && IDF_TARGET_ESP32S3
config SR_MN_CN_MULTINET5_SINGLE_RECOGNITION
bool "chinese single recognition (MultiNet5)"
depends on SR_MN_CHINESE && IDF_TARGET_ESP32S3
endchoice
menu "Add speech commands"

View File

@ -39,6 +39,9 @@ extern const esp_mn_iface_t esp_sr_multinet5_quantized8;
#elif CONFIG_SR_MN_CN_MULTINET3_CONTINUOUS_RECOGNITION
#define MULTINET_MODEL esp_sr_multinet3_continuous_quantized_cn
#define MULTINET_COEFF "mn3cn"
#elif CONFIG_SR_MN_CN_MULTINET5_SINGLE_RECOGNITION
#define MULTINET_MODEL esp_sr_multinet4_single_quantized_cn
#define MULTINET_COEFF "mn5cn"
#elif CONFIG_SR_MN_EN_MULTINET5_SINGLE_RECOGNITION
#define MULTINET_MODEL esp_sr_multinet5_quantized
#define MULTINET_COEFF "mn5en"

Binary file not shown.

View File

@ -1 +1 @@
8fff2d659765a86c9095e967aca8d5c10f06d1a4
7ce38202b5ce1d21ab82a1b61253a8d0525f4d40

View File

@ -62,6 +62,8 @@ if "CONFIG_SR_MN_CN_MULTINET3_SINGLE_RECOGNITION" in MN_STRING or "CONFIG_SR_MN_
multinet_model = 'mn3cn'
elif "CONFIG_SR_MN_CN_MULTINET4_SINGLE_RECOGNITION" in MN_STRING:
multinet_model = 'mn4cn'
elif "CONFIG_SR_MN_CN_MULTINET5_SINGLE_RECOGNITION" in MN_STRING:
multinet_model = 'mn5cn'
elif "CONFIG_SR_MN_EN_MULTINET5_SINGLE_RECOGNITION_QUANT8" in MN_STRING:
multinet_model = 'mn5q8en'
elif "CONFIG_SR_MN_EN_MULTINET5_SINGLE_RECOGNITION" in MN_STRING:

View File

@ -0,0 +1 @@
MN231_617165_multiwords_231_617165_0.90

Binary file not shown.

Binary file not shown.