Add C++ example for real-time ASR with nvidia/parakeet-tdt-0.6b-v2. (#2201)

This commit is contained in:
Fangjun Kuang
2025-05-11 16:30:38 +08:00
committed by GitHub
parent 028b8f2718
commit b269e5cccc
3 changed files with 297 additions and 1 deletions

View File

@@ -36,6 +36,15 @@ if(SHERPA_ONNX_ENABLE_PORTAUDIO)
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
sherpa-onnx-cxx-api
portaudio_static
)
endif()
add_executable(sense-voice-with-hr-cxx-api ./sense-voice-with-hr-cxx-api.cc)