diff --git a/CMakeLists.txt b/CMakeLists.txt index 34a2e04..e6c9848 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,4 +155,23 @@ elseif(${IDF_TARGET} STREQUAL "esp32c3") esp_tts_chinese voice_set_xiaole "-Wl,--end-group") +elseif(${IDF_TARGET} STREQUAL "esp32c6") + set(requires + spiffs + ) + + IF (IDF_VERSION_MAJOR GREATER 4) + list(APPEND requires esp_partition) + ENDIF (IDF_VERSION_MAJOR GREATER 4) + + idf_component_register(SRCS . + INCLUDE_DIRS esp-tts/esp_tts_chinese/include + REQUIRES ${requires} + PRIV_REQUIRES spi_flash) + + target_link_libraries(${COMPONENT_TARGET} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/esp-tts/esp_tts_chinese/esp32c6") + target_link_libraries(${COMPONENT_TARGET} INTERFACE "-Wl,--start-group" + esp_tts_chinese + voice_set_xiaole + "-Wl,--end-group") endif() diff --git a/esp-tts/esp_tts_chinese/esp32c6/libesp_tts_chinese.a b/esp-tts/esp_tts_chinese/esp32c6/libesp_tts_chinese.a new file mode 100644 index 0000000..92275a1 Binary files /dev/null and b/esp-tts/esp_tts_chinese/esp32c6/libesp_tts_chinese.a differ diff --git a/esp-tts/esp_tts_chinese/esp32c6/libvoice_set_xiaole.a b/esp-tts/esp_tts_chinese/esp32c6/libvoice_set_xiaole.a new file mode 100644 index 0000000..9721b59 Binary files /dev/null and b/esp-tts/esp_tts_chinese/esp32c6/libvoice_set_xiaole.a differ diff --git a/idf_component.yml b/idf_component.yml index 6e63d06..3e2ef2c 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -14,3 +14,4 @@ targets: - esp32s2 - esp32s3 - esp32c3 + - esp32c6