Skip to content

Commit

Permalink
Merge branch 'bugfix/mn2' into 'master'
Browse files Browse the repository at this point in the history
Bugfix/mn2

See merge request speech-recognition-framework/esp-sr!78
  • Loading branch information
sun-xiangyu committed Nov 21, 2023
2 parents c22423d + a3e00ed commit 34381ef
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ elseif(${IDF_TARGET} STREQUAL "esp32s3")
add_prebuilt_library(multinet "${CMAKE_CURRENT_SOURCE_DIR}/lib/esp32s3/libmultinet.a" PRIV_REQUIRES ${COMPONENT_NAME})
add_prebuilt_library(esp_audio_front_end "${CMAKE_CURRENT_SOURCE_DIR}/lib/esp32s3/libesp_audio_front_end.a" PRIV_REQUIRES ${COMPONENT_NAME})
add_prebuilt_library(hufzip "${CMAKE_CURRENT_SOURCE_DIR}/lib/esp32s3/libhufzip.a" PRIV_REQUIRES ${COMPONENT_NAME})
add_prebuilt_library(nsnet "${CMAKE_CURRENT_SOURCE_DIR}/lib/esp32s3/libnsnet.a" PRIV_REQUIRES ${COMPONENT_NAME})

idf_component_get_property(esp_dsp_lib espressif__esp-dsp COMPONENT_LIB)

Expand All @@ -89,11 +90,11 @@ elseif(${IDF_TARGET} STREQUAL "esp32s3")
esp_audio_front_end
esp_audio_processor
multinet
flite_g2p
flite_g2p
esp_tts_chinese
voice_set_xiaole
nsnet
wakenet
nsnet
"-Wl,--end-group")

set(MVMODEL_EXE ${COMPONENT_PATH}/model/movemodel.py)
Expand Down
Binary file modified lib/esp32/libc_speech_features.a
Binary file not shown.
Binary file modified lib/esp32/libdl_lib.a
Binary file not shown.
Binary file modified lib/esp32/libesp_audio_front_end.a
Binary file not shown.
Binary file modified lib/esp32/libesp_audio_processor.a
Binary file not shown.
Binary file modified lib/esp32/libmultinet.a
Binary file not shown.
Binary file modified lib/esp32/libwakenet.a
Binary file not shown.
Binary file modified lib/esp32/libwakeword_model.a
Binary file not shown.
5 changes: 4 additions & 1 deletion src/esp_mn_speech_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ static model_iface_data_t *esp_mn_model_data = NULL;
void *_esp_mn_calloc_(int n, int size)
{
#ifdef ESP_PLATFORM
return heap_caps_calloc(n, size, MALLOC_CAP_SPIRAM);
void *data = heap_caps_calloc(n, size, MALLOC_CAP_SPIRAM);
if (data == NULL)
data = calloc(n, size);
return data;
#else
return calloc(n, size);
#endif
Expand Down

0 comments on commit 34381ef

Please sign in to comment.