2025-03-28 23:27:59 +01:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR})
|
2024-10-23 12:07:43 +08:00
|
|
|
|
|
|
|
|
add_executable(streaming-zipformer-cxx-api ./streaming-zipformer-cxx-api.cc)
|
|
|
|
|
target_link_libraries(streaming-zipformer-cxx-api sherpa-onnx-cxx-api)
|
2024-10-23 16:40:12 +08:00
|
|
|
|
2025-04-27 22:09:13 +08:00
|
|
|
add_executable(streaming-zipformer-with-hr-cxx-api ./streaming-zipformer-with-hr-cxx-api.cc)
|
|
|
|
|
target_link_libraries(streaming-zipformer-with-hr-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2025-03-11 17:07:52 +08:00
|
|
|
add_executable(speech-enhancement-gtcrn-cxx-api ./speech-enhancement-gtcrn-cxx-api.cc)
|
|
|
|
|
target_link_libraries(speech-enhancement-gtcrn-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2025-01-20 16:41:10 +08:00
|
|
|
add_executable(kws-cxx-api ./kws-cxx-api.cc)
|
|
|
|
|
target_link_libraries(kws-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2024-11-01 11:40:13 +08:00
|
|
|
add_executable(streaming-zipformer-rtf-cxx-api ./streaming-zipformer-rtf-cxx-api.cc)
|
|
|
|
|
target_link_libraries(streaming-zipformer-rtf-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2024-10-23 16:40:12 +08:00
|
|
|
add_executable(whisper-cxx-api ./whisper-cxx-api.cc)
|
|
|
|
|
target_link_libraries(whisper-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2025-02-17 11:46:13 +08:00
|
|
|
add_executable(fire-red-asr-cxx-api ./fire-red-asr-cxx-api.cc)
|
|
|
|
|
target_link_libraries(fire-red-asr-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2024-10-26 23:24:46 +08:00
|
|
|
add_executable(moonshine-cxx-api ./moonshine-cxx-api.cc)
|
|
|
|
|
target_link_libraries(moonshine-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2024-10-23 16:40:12 +08:00
|
|
|
add_executable(sense-voice-cxx-api ./sense-voice-cxx-api.cc)
|
|
|
|
|
target_link_libraries(sense-voice-cxx-api sherpa-onnx-cxx-api)
|
2025-01-03 14:16:36 +08:00
|
|
|
|
2025-07-07 23:38:04 +08:00
|
|
|
add_executable(nemo-canary-cxx-api ./nemo-canary-cxx-api.cc)
|
|
|
|
|
target_link_libraries(nemo-canary-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2025-05-11 00:23:32 +08:00
|
|
|
if(SHERPA_ONNX_ENABLE_PORTAUDIO)
|
|
|
|
|
add_executable(sense-voice-simulate-streaming-microphone-cxx-api
|
|
|
|
|
./sense-voice-simulate-streaming-microphone-cxx-api.cc
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../sherpa-onnx/csrc/microphone.cc
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(sense-voice-simulate-streaming-microphone-cxx-api
|
2025-05-11 16:30:38 +08:00
|
|
|
sherpa-onnx-cxx-api
|
|
|
|
|
portaudio_static
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_executable(parakeet-tdt-simulate-streaming-microphone-cxx-api
|
|
|
|
|
./parakeet-tdt-simulate-streaming-microphone-cxx-api.cc
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../sherpa-onnx/csrc/microphone.cc
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(parakeet-tdt-simulate-streaming-microphone-cxx-api
|
2025-05-11 00:23:32 +08:00
|
|
|
sherpa-onnx-cxx-api
|
|
|
|
|
portaudio_static
|
|
|
|
|
)
|
Support non-streaming zipformer CTC ASR models (#2340)
This PR adds support for non-streaming Zipformer CTC ASR models across
multiple language bindings, WebAssembly, examples, and CI workflows.
- Introduces a new OfflineZipformerCtcModelConfig in C/C++, Python, Swift, Java, Kotlin, Go, Dart, Pascal, and C# APIs
- Updates initialization, freeing, and recognition logic to include Zipformer CTC in WASM and Node.js
- Adds example scripts and CI steps for downloading, building, and running Zipformer CTC models
Model doc is available at
https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/icefall/zipformer.html
2025-07-04 15:57:07 +08:00
|
|
|
|
2025-07-09 18:30:42 +08:00
|
|
|
add_executable(parakeet-tdt-ctc-simulate-streaming-microphone-cxx-api
|
|
|
|
|
./parakeet-tdt-ctc-simulate-streaming-microphone-cxx-api.cc
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../sherpa-onnx/csrc/microphone.cc
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(parakeet-tdt-ctc-simulate-streaming-microphone-cxx-api
|
|
|
|
|
sherpa-onnx-cxx-api
|
|
|
|
|
portaudio_static
|
|
|
|
|
)
|
|
|
|
|
|
Support non-streaming zipformer CTC ASR models (#2340)
This PR adds support for non-streaming Zipformer CTC ASR models across
multiple language bindings, WebAssembly, examples, and CI workflows.
- Introduces a new OfflineZipformerCtcModelConfig in C/C++, Python, Swift, Java, Kotlin, Go, Dart, Pascal, and C# APIs
- Updates initialization, freeing, and recognition logic to include Zipformer CTC in WASM and Node.js
- Adds example scripts and CI steps for downloading, building, and running Zipformer CTC models
Model doc is available at
https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/icefall/zipformer.html
2025-07-04 15:57:07 +08:00
|
|
|
add_executable(zipformer-ctc-simulate-streaming-microphone-cxx-api
|
|
|
|
|
./zipformer-ctc-simulate-streaming-microphone-cxx-api.cc
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../sherpa-onnx/csrc/microphone.cc
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(zipformer-ctc-simulate-streaming-microphone-cxx-api
|
|
|
|
|
sherpa-onnx-cxx-api
|
|
|
|
|
portaudio_static
|
|
|
|
|
)
|
2025-07-09 18:30:42 +08:00
|
|
|
|
|
|
|
|
add_executable(zipformer-transducer-simulate-streaming-microphone-cxx-api
|
|
|
|
|
./zipformer-transducer-simulate-streaming-microphone-cxx-api.cc
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../sherpa-onnx/csrc/microphone.cc
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(zipformer-transducer-simulate-streaming-microphone-cxx-api
|
|
|
|
|
sherpa-onnx-cxx-api
|
|
|
|
|
portaudio_static
|
|
|
|
|
)
|
2025-05-11 00:23:32 +08:00
|
|
|
endif()
|
|
|
|
|
|
2025-05-13 19:08:09 +08:00
|
|
|
if(SHERPA_ONNX_HAS_ALSA)
|
|
|
|
|
add_executable(sense-voice-simulate-streaming-alsa-cxx-api
|
|
|
|
|
./sense-voice-simulate-streaming-alsa-cxx-api.cc
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../sherpa-onnx/csrc/alsa.cc
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(sense-voice-simulate-streaming-alsa-cxx-api
|
|
|
|
|
sherpa-onnx-cxx-api
|
|
|
|
|
portaudio_static
|
|
|
|
|
)
|
|
|
|
|
|
Support non-streaming zipformer CTC ASR models (#2340)
This PR adds support for non-streaming Zipformer CTC ASR models across
multiple language bindings, WebAssembly, examples, and CI workflows.
- Introduces a new OfflineZipformerCtcModelConfig in C/C++, Python, Swift, Java, Kotlin, Go, Dart, Pascal, and C# APIs
- Updates initialization, freeing, and recognition logic to include Zipformer CTC in WASM and Node.js
- Adds example scripts and CI steps for downloading, building, and running Zipformer CTC models
Model doc is available at
https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/icefall/zipformer.html
2025-07-04 15:57:07 +08:00
|
|
|
add_executable(zipformer-ctc-simulate-streaming-alsa-cxx-api
|
|
|
|
|
./zipformer-ctc-simulate-streaming-alsa-cxx-api.cc
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/../sherpa-onnx/csrc/alsa.cc
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(zipformer-ctc-simulate-streaming-alsa-cxx-api
|
|
|
|
|
sherpa-onnx-cxx-api
|
|
|
|
|
portaudio_static
|
|
|
|
|
)
|
|
|
|
|
|
2025-05-13 19:08:09 +08:00
|
|
|
if(DEFINED ENV{SHERPA_ONNX_ALSA_LIB_DIR})
|
|
|
|
|
target_link_libraries(sense-voice-simulate-streaming-alsa-cxx-api -L$ENV{SHERPA_ONNX_ALSA_LIB_DIR} -lasound)
|
Support non-streaming zipformer CTC ASR models (#2340)
This PR adds support for non-streaming Zipformer CTC ASR models across
multiple language bindings, WebAssembly, examples, and CI workflows.
- Introduces a new OfflineZipformerCtcModelConfig in C/C++, Python, Swift, Java, Kotlin, Go, Dart, Pascal, and C# APIs
- Updates initialization, freeing, and recognition logic to include Zipformer CTC in WASM and Node.js
- Adds example scripts and CI steps for downloading, building, and running Zipformer CTC models
Model doc is available at
https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/icefall/zipformer.html
2025-07-04 15:57:07 +08:00
|
|
|
target_link_libraries(zipformer-ctc-simulate-streaming-alsa-cxx-api -L$ENV{SHERPA_ONNX_ALSA_LIB_DIR} -lasound)
|
2025-05-13 19:08:09 +08:00
|
|
|
else()
|
|
|
|
|
target_link_libraries(sense-voice-simulate-streaming-alsa-cxx-api asound)
|
Support non-streaming zipformer CTC ASR models (#2340)
This PR adds support for non-streaming Zipformer CTC ASR models across
multiple language bindings, WebAssembly, examples, and CI workflows.
- Introduces a new OfflineZipformerCtcModelConfig in C/C++, Python, Swift, Java, Kotlin, Go, Dart, Pascal, and C# APIs
- Updates initialization, freeing, and recognition logic to include Zipformer CTC in WASM and Node.js
- Adds example scripts and CI steps for downloading, building, and running Zipformer CTC models
Model doc is available at
https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/icefall/zipformer.html
2025-07-04 15:57:07 +08:00
|
|
|
target_link_libraries(zipformer-ctc-simulate-streaming-alsa-cxx-api asound)
|
2025-05-13 19:08:09 +08:00
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
2025-04-27 22:09:13 +08:00
|
|
|
add_executable(sense-voice-with-hr-cxx-api ./sense-voice-with-hr-cxx-api.cc)
|
|
|
|
|
target_link_libraries(sense-voice-with-hr-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2025-04-02 21:54:20 +08:00
|
|
|
add_executable(dolphin-ctc-cxx-api ./dolphin-ctc-cxx-api.cc)
|
|
|
|
|
target_link_libraries(dolphin-ctc-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2025-04-01 14:51:43 +08:00
|
|
|
add_executable(vad-cxx-api ./vad-cxx-api.cc)
|
|
|
|
|
target_link_libraries(vad-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
2025-01-03 14:16:36 +08:00
|
|
|
if(SHERPA_ONNX_ENABLE_TTS)
|
|
|
|
|
add_executable(matcha-tts-zh-cxx-api ./matcha-tts-zh-cxx-api.cc)
|
|
|
|
|
target_link_libraries(matcha-tts-zh-cxx-api sherpa-onnx-cxx-api)
|
|
|
|
|
|
|
|
|
|
add_executable(matcha-tts-en-cxx-api ./matcha-tts-en-cxx-api.cc)
|
|
|
|
|
target_link_libraries(matcha-tts-en-cxx-api sherpa-onnx-cxx-api)
|
2025-01-16 15:07:26 +08:00
|
|
|
|
|
|
|
|
add_executable(kokoro-tts-en-cxx-api ./kokoro-tts-en-cxx-api.cc)
|
|
|
|
|
target_link_libraries(kokoro-tts-en-cxx-api sherpa-onnx-cxx-api)
|
2025-02-07 14:51:49 +08:00
|
|
|
|
|
|
|
|
add_executable(kokoro-tts-zh-en-cxx-api ./kokoro-tts-zh-en-cxx-api.cc)
|
|
|
|
|
target_link_libraries(kokoro-tts-zh-en-cxx-api sherpa-onnx-cxx-api)
|
2025-01-03 14:16:36 +08:00
|
|
|
endif()
|