espressif / esp-adf

Espressif Audio Development Framework
Other
1.56k stars 690 forks source link

How to enable NS_MODE_NET ? (AUD-5565) #1238

Closed Oreobird closed 3 months ago

Oreobird commented 4 months ago

Using esp-idf v5.1.1 and esp-adf-1f275b5 for ESP32-S3-BOX-3,sdkconfig for Speech Recognition is:

#
# ESP Speech Recognition
#
CONFIG_MODEL_IN_SPIFFS=y
CONFIG_USE_AFE=y
CONFIG_AFE_INTERFACE_V1=y
CONFIG_USE_NSNET=y
CONFIG_SR_NSN_NSNET1=y
CONFIG_USE_WAKENET=y
CONFIG_SR_WN_LOAD_MULIT_WORD=y

#
# Load Multiple Wake Words
#
CONFIG_SR_WN_WN9_XIAOAITONGXUE_MULTI=y
CONFIG_SR_WN_WN9_ALEXA_MULTI=y
# end of Load Multiple Wake Words

CONFIG_USE_MULTINET=y
CONFIG_SR_MN_CN_NONE=y
CONFIG_SR_MN_EN_MULTINET6_QUANT=y
# end of ESP Speech Recognition

when I config the afe_ns_mode to NS_MODE_NET in recorder,I met the error:

I (9563) MODEL_LOADER: The storage free size is 16384 KB
I (9569) MODEL_LOADER: The partition size is 7168 KB
I (9575) MODEL_LOADER: Successfully map model partition
I (9581) RECORDER_SR: The first wakenet model: wn9_alexa

I (9587) RECORDER_SR: The second wakenet model: wn9_xiaoaitongxue

I (9594) AFE_SR: afe interface for speech recognition

I (9599) AFE_SR: AFE version: SR_V220727

I (9604) AFE_SR: Initial auido front-end, total channel: 3, mic num: 2, ref num: 1

E (9613) AFE_SR: Ns net mode does not supported ESP_AFE_SR_HANDLE!

E (9620) AFE_SR: AFE config error!

E (9624) RECORDER_SR: recorder_sr.c:592 (recorder_sr_create): Got NULL Pointer
Gaochenchang commented 3 months ago

Hi,@Oreobird Speech recognition cannot use NSNET. As shown in the log, "Ns net mode does not support ESP_AFE_SR_HANDLE!"