diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d31a11..db05913 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,8 @@ - Available storage is less than the remaining flash space on IDF v5.0. If you can not map model partition successfully, please check the left free storage by `spi_flash_mmap_get_free_pages(ESP_PARTITION_MMAP_DATA)` or update IDF to v5.1 or later. -## To be released -- Support esp32p4 for WakeNet -- Support esp32p4 for MultiNet -- Support esp32p4 for AFE_SR +## 1.9.0 +- Support esp32p4 for WakeNet, MultiNet and AFE_SR ## 1.8.0 diff --git a/idf_component.yml b/idf_component.yml index 0d47715..cfa1895 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.8.0" +version: "1.9.0" description: esp_sr provides basic algorithms for Speech Recognition applications url: https://github.com/espressif/esp-sr dependencies: diff --git a/include/esp32p4/esp_afe_config.h b/include/esp32p4/esp_afe_config.h index e5cdf55..9653f74 100644 --- a/include/esp32p4/esp_afe_config.h +++ b/include/esp32p4/esp_afe_config.h @@ -137,7 +137,7 @@ typedef struct { .vad_mode = VAD_MODE_3, \ .wakenet_model_name = NULL, \ .wakenet_model_name_2 = NULL, \ - .wakenet_mode = DET_MODE_2CH_90, \ + .wakenet_mode = DET_MODE_3CH_90, \ .afe_mode = SR_MODE_LOW_COST, \ .afe_perferred_core = 0, \ .afe_perferred_priority = 5, \ @@ -189,4 +189,4 @@ typedef struct { #ifdef __cplusplus } -#endif \ No newline at end of file +#endif diff --git a/lib/esp32p4/libesp_audio_front_end.a b/lib/esp32p4/libesp_audio_front_end.a index b66ab4f..e7ac339 100644 Binary files a/lib/esp32p4/libesp_audio_front_end.a and b/lib/esp32p4/libesp_audio_front_end.a differ diff --git a/lib/esp32p4/libesp_audio_processor.a b/lib/esp32p4/libesp_audio_processor.a index b39d680..6bf5dfd 100644 Binary files a/lib/esp32p4/libesp_audio_processor.a and b/lib/esp32p4/libesp_audio_processor.a differ diff --git a/lib/esp32p4/libmultinet.a b/lib/esp32p4/libmultinet.a index d955da9..64de3ff 100644 Binary files a/lib/esp32p4/libmultinet.a and b/lib/esp32p4/libmultinet.a differ diff --git a/lib/esp32p4/libwakenet.a b/lib/esp32p4/libwakenet.a index 4d0005c..4ad1380 100644 Binary files a/lib/esp32p4/libwakenet.a and b/lib/esp32p4/libwakenet.a differ diff --git a/src/esp_process_sdkconfig.c b/src/esp_process_sdkconfig.c index 934d772..120d368 100644 --- a/src/esp_process_sdkconfig.c +++ b/src/esp_process_sdkconfig.c @@ -30,13 +30,6 @@ void check_chip_config(void) #ifndef CONFIG_ESP32S3_DATA_CACHE_LINE_64B ESP_LOGW(TAG, "Data cache line recommends 64B"); #endif -#elif CONFIG_IDF_TARGET_ESP32P4 -#ifndef CONFIG_SPIRAM_SPEED - ESP_LOGW(TAG, "PSRAM should be enabled and PSRAM freq should be not less than 80MHz"); -#endif -#ifndef CONFIG_CACHE_L2_CACHE_LINE_128B - ESP_LOGW(TAG, "It is recommended to set the cache line to 128B"); -#endif #elif CONFIG_IDF_TARGET_ESP32 #ifndef CONFIG_ESP32_DEFAULT_CPU_FREQ_240 @@ -54,8 +47,18 @@ void check_chip_config(void) #ifndef CONFIG_ESPTOOLPY_FLASHMODE_QIO ESP_LOGW(TAG, "Flash mode should be QIO"); #endif + +#elif CONFIG_IDF_TARGET_ESP32P4 +#if (! defined CONFIG_ESPTOOLPY_FLASHFREQ_80M) + ESP_LOGW(TAG, "Flash freq should be 80MHz"); +#endif + +#ifndef CONFIG_SPIRAM_SPEED_200M + ESP_LOGW(TAG, "PSRAM freq should be 200MHz"); +#endif + #else - ESP_LOGW(TAG, "ESP-SR-AFE only support ESP32/ESP32S3/ESP32P4"); + ESP_LOGW(TAG, "ESP-SR-AFE only support ESP32/ESP32S3"); #endif }