2023-06-02 13:57:48 -07:00
|
|
|
include(cargs)
|
|
|
|
|
|
2023-02-24 16:42:46 +08:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR})
|
|
|
|
|
add_executable(decode-file-c-api decode-file-c-api.c)
|
2023-06-02 13:57:48 -07:00
|
|
|
target_link_libraries(decode-file-c-api sherpa-onnx-c-api cargs)
|
2023-10-19 17:38:23 +08:00
|
|
|
|
2025-01-20 16:41:10 +08:00
|
|
|
add_executable(kws-c-api kws-c-api.c)
|
|
|
|
|
target_link_libraries(kws-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-03-26 17:21:35 +08:00
|
|
|
if(SHERPA_ONNX_ENABLE_TTS)
|
|
|
|
|
add_executable(offline-tts-c-api offline-tts-c-api.c)
|
|
|
|
|
target_link_libraries(offline-tts-c-api sherpa-onnx-c-api cargs)
|
2025-01-03 12:17:26 +08:00
|
|
|
|
|
|
|
|
add_executable(matcha-tts-zh-c-api matcha-tts-zh-c-api.c)
|
|
|
|
|
target_link_libraries(matcha-tts-zh-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
|
|
|
|
add_executable(matcha-tts-en-c-api matcha-tts-en-c-api.c)
|
|
|
|
|
target_link_libraries(matcha-tts-en-c-api sherpa-onnx-c-api)
|
2025-01-16 15:07:26 +08:00
|
|
|
|
|
|
|
|
add_executable(kokoro-tts-en-c-api kokoro-tts-en-c-api.c)
|
|
|
|
|
target_link_libraries(kokoro-tts-en-c-api sherpa-onnx-c-api)
|
2025-02-07 14:30:40 +08:00
|
|
|
|
|
|
|
|
add_executable(kokoro-tts-zh-en-c-api kokoro-tts-zh-en-c-api.c)
|
|
|
|
|
target_link_libraries(kokoro-tts-zh-en-c-api sherpa-onnx-c-api)
|
2024-03-26 17:21:35 +08:00
|
|
|
endif()
|
2024-03-08 19:31:46 +08:00
|
|
|
|
2024-10-09 17:10:03 +08:00
|
|
|
if(SHERPA_ONNX_ENABLE_SPEAKER_DIARIZATION)
|
|
|
|
|
add_executable(offline-speaker-diarization-c-api offline-speaker-diarization-c-api.c)
|
|
|
|
|
target_link_libraries(offline-speaker-diarization-c-api sherpa-onnx-c-api)
|
|
|
|
|
endif()
|
|
|
|
|
|
2024-03-25 15:16:47 +08:00
|
|
|
add_executable(spoken-language-identification-c-api spoken-language-identification-c-api.c)
|
|
|
|
|
target_link_libraries(spoken-language-identification-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-03-28 18:05:40 +08:00
|
|
|
add_executable(speaker-identification-c-api speaker-identification-c-api.c)
|
|
|
|
|
target_link_libraries(speaker-identification-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-04-05 10:31:20 +08:00
|
|
|
add_executable(streaming-hlg-decode-file-c-api streaming-hlg-decode-file-c-api.c)
|
|
|
|
|
target_link_libraries(streaming-hlg-decode-file-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-04-11 14:18:43 +08:00
|
|
|
add_executable(audio-tagging-c-api audio-tagging-c-api.c)
|
|
|
|
|
target_link_libraries(audio-tagging-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-04-14 19:02:34 +08:00
|
|
|
add_executable(add-punctuation-c-api add-punctuation-c-api.c)
|
|
|
|
|
target_link_libraries(add-punctuation-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-07-22 16:54:00 +08:00
|
|
|
add_executable(whisper-c-api whisper-c-api.c)
|
|
|
|
|
target_link_libraries(whisper-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2025-02-17 11:22:17 +08:00
|
|
|
add_executable(fire-red-asr-c-api fire-red-asr-c-api.c)
|
|
|
|
|
target_link_libraries(fire-red-asr-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-07-22 16:54:00 +08:00
|
|
|
add_executable(sense-voice-c-api sense-voice-c-api.c)
|
|
|
|
|
target_link_libraries(sense-voice-c-api sherpa-onnx-c-api)
|
2024-07-22 05:32:12 +03:00
|
|
|
|
2024-10-26 23:24:46 +08:00
|
|
|
add_executable(moonshine-c-api moonshine-c-api.c)
|
|
|
|
|
target_link_libraries(moonshine-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-08-14 10:52:47 +08:00
|
|
|
add_executable(zipformer-c-api zipformer-c-api.c)
|
|
|
|
|
target_link_libraries(zipformer-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
|
|
|
|
add_executable(streaming-zipformer-c-api streaming-zipformer-c-api.c)
|
|
|
|
|
target_link_libraries(streaming-zipformer-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
|
|
|
|
add_executable(paraformer-c-api paraformer-c-api.c)
|
|
|
|
|
target_link_libraries(paraformer-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
|
|
|
|
add_executable(streaming-paraformer-c-api streaming-paraformer-c-api.c)
|
|
|
|
|
target_link_libraries(streaming-paraformer-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
|
|
|
|
add_executable(telespeech-c-api telespeech-c-api.c)
|
|
|
|
|
target_link_libraries(telespeech-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-08-27 16:11:24 +08:00
|
|
|
add_executable(vad-sense-voice-c-api vad-sense-voice-c-api.c)
|
|
|
|
|
target_link_libraries(vad-sense-voice-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-10-26 23:24:46 +08:00
|
|
|
add_executable(vad-whisper-c-api vad-whisper-c-api.c)
|
|
|
|
|
target_link_libraries(vad-whisper-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
|
|
|
|
add_executable(vad-moonshine-c-api vad-moonshine-c-api.c)
|
|
|
|
|
target_link_libraries(vad-moonshine-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-09-13 09:58:17 +08:00
|
|
|
add_executable(streaming-zipformer-buffered-tokens-hotwords-c-api
|
|
|
|
|
streaming-zipformer-buffered-tokens-hotwords-c-api.c)
|
|
|
|
|
target_link_libraries(streaming-zipformer-buffered-tokens-hotwords-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-09-20 16:38:41 +08:00
|
|
|
add_executable(streaming-paraformer-buffered-tokens-c-api
|
|
|
|
|
streaming-paraformer-buffered-tokens-c-api.c)
|
|
|
|
|
target_link_libraries(streaming-paraformer-buffered-tokens-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
|
|
|
|
add_executable(streaming-ctc-buffered-tokens-c-api
|
|
|
|
|
streaming-ctc-buffered-tokens-c-api.c)
|
|
|
|
|
target_link_libraries(streaming-ctc-buffered-tokens-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
|
|
|
|
add_executable(keywords-spotter-buffered-tokens-keywords-c-api
|
|
|
|
|
keywords-spotter-buffered-tokens-keywords-c-api.c)
|
|
|
|
|
target_link_libraries(keywords-spotter-buffered-tokens-keywords-c-api sherpa-onnx-c-api)
|
|
|
|
|
|
2024-03-08 19:31:46 +08:00
|
|
|
if(SHERPA_ONNX_HAS_ALSA)
|
|
|
|
|
add_subdirectory(./asr-microphone-example)
|
2024-03-25 15:16:47 +08:00
|
|
|
elseif((UNIX AND NOT APPLE) OR LINUX)
|
2024-03-08 19:31:46 +08:00
|
|
|
message(WARNING "Not include ./asr-microphone-example since alsa is not available")
|
|
|
|
|
endif()
|