feat(tts): Support esp32c3

This commit is contained in:
sxy 2023-02-02 15:25:58 +08:00
parent 22a3beddad
commit 31d2ef85d3
7 changed files with 25 additions and 20 deletions

View File

@ -1,6 +1,7 @@
# Change log for esp-sr
## 1.1.0
Support esp32c3 for Chinese TTS
Update document of ESP-SR
Add ESP-SR into Espressif component manager

View File

@ -37,24 +37,6 @@ ENDIF (IDF_VERSION_MAJOR GREATER 3)
voice_set_xiaole
wakenet
"-Wl,--end-group")
elseif(${IDF_TARGET} STREQUAL "esp32s2")
set(COMPONENT_ADD_INCLUDEDIRS
esp-tts/esp_tts_chinese/include
include/esp32
src/include
)
set(COMPONENT_REQUIRES
json
spiffs
)
register_component()
target_link_libraries(${COMPONENT_TARGET} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/esp-tts/esp_tts_chinese/esp32s2")
target_link_libraries(${COMPONENT_TARGET} INTERFACE "-Wl,--start-group"
esp_tts_chinese
voice_set_xiaole
"-Wl,--end-group")
elseif(${IDF_TARGET} STREQUAL "esp32s3")
set(COMPONENT_ADD_INCLUDEDIRS
src/include
@ -162,4 +144,26 @@ elseif(${IDF_TARGET} STREQUAL "esp32s3")
set(message "Failed to create SPIFFS image for partition 'model'. "
"Check project configuration if using the correct partition table file.")
endif()
elseif(${IDF_TARGET} STREQUAL "esp32s2")
set(COMPONENT_ADD_INCLUDEDIRS
esp-tts/esp_tts_chinese/include
)
register_component()
target_link_libraries(${COMPONENT_TARGET} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/esp-tts/esp_tts_chinese/esp32s2")
target_link_libraries(${COMPONENT_TARGET} INTERFACE "-Wl,--start-group"
esp_tts_chinese
voice_set_xiaole
"-Wl,--end-group")
elseif(${IDF_TARGET} STREQUAL "esp32c3")
set(COMPONENT_ADD_INCLUDEDIRS
esp-tts/esp_tts_chinese/include
)
register_component()
target_link_libraries(${COMPONENT_TARGET} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/esp-tts/esp_tts_chinese/esp32c3")
target_link_libraries(${COMPONENT_TARGET} INTERFACE "-Wl,--start-group"
esp_tts_chinese
voice_set_xiaole
"-Wl,--end-group")
endif()

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
version: "1.0.3"
version: "1.1.0"
description: esp_sr provides basic algorithms for Speech Recognition applications
url: https://github.com/espressif/esp-sr
dependencies:
@ -6,4 +6,4 @@ dependencies:
files:
exclude:
- ".github"
- "docs"
- "docs"