Fix building without TTS (#2159)

This commit is contained in:
Fangjun Kuang
2025-04-29 15:14:50 +08:00
committed by GitHub
parent 9d25c90a59
commit 73dba27145

View File

@@ -393,9 +393,10 @@ if(SHERPA_ONNX_ENABLE_TTS)
set(ESPEAK_NG_DIR ${espeak_ng_SOURCE_DIR})
message(STATUS "ESPEAK_NG_DIR: ${ESPEAK_NG_DIR}")
include(piper-phonemize)
include(cppjieba) # For Chinese TTS. It is a header-only C++ library
endif()
include(cppjieba) # It is a header-only C++ library
if(SHERPA_ONNX_ENABLE_SPEAKER_DIARIZATION)
include(hclust-cpp)
endif()