Fangjun Kuang
Committed by GitHub

Fix building without TTS (#2159)

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