yangrongzhao
Inflect-Micro-v2 TTS: AX650 NPU3, U16 AXMODEL
7cbe545
Raw
History Blame Contribute Delete
1.05 kB
cmake_minimum_required(VERSION 3.15)
project(inflect_tts_sdk LANGUAGES CXX C)
set(CMAKE_CXX_STANDARD 14)
# ---- Dependencies (customize paths) ----
# git clone https://github.com/yhirose/cpp-httplib.git
# git clone https://github.com/nlohmann/json.git
# set(CPPHTTPLIB_DIR "" CACHE PATH "Path to cpp-httplib")
# set(JSON_DIR "" CACHE PATH "Path to nlohmann/json")
# include_directories(${CPPHTTPLIB_DIR} ${JSON_DIR})
include_directories(include ${AX_RUNTIME_ROOT}/include)
link_directories(${AX_RUNTIME_ROOT}/lib)
# ---- Library ----
add_library(inflect_tts STATIC
src/tts_encoder.cpp
src/tts_decoder.cpp
)
target_link_libraries(inflect_tts ax_engine ax_sys pthread dl atomic)
# ---- CLI ----
add_executable(tts_cli src/tts_cli.cpp)
target_link_libraries(tts_cli inflect_tts)
# ---- HTTP Server ----
add_executable(tts_server src/tts_server.cpp)
target_link_libraries(tts_server inflect_tts)
# Uncomment for production HTTP server:
# target_compile_definitions(tts_server PRIVATE USE_CPPHTTPLIB)
# target_link_libraries(tts_server pthread)