Add C++ demo for VAD+non-streaming ASR (#1964)

This commit is contained in:
Fangjun Kuang
2025-03-07 11:49:46 +08:00
committed by GitHub
parent 1e2328242d
commit 362ddf2c07
6 changed files with 276 additions and 45 deletions

View File

@@ -452,6 +452,10 @@ if(SHERPA_ONNX_ENABLE_PORTAUDIO AND SHERPA_ONNX_ENABLE_BINARY)
microphone.cc
)
add_executable(sherpa-onnx-vad-with-offline-asr
sherpa-onnx-vad-with-offline-asr.cc
)
add_executable(sherpa-onnx-vad-microphone-offline-asr
sherpa-onnx-vad-microphone-offline-asr.cc
microphone.cc
@@ -475,6 +479,7 @@ if(SHERPA_ONNX_ENABLE_PORTAUDIO AND SHERPA_ONNX_ENABLE_BINARY)
sherpa-onnx-microphone-offline-audio-tagging
sherpa-onnx-vad-microphone
sherpa-onnx-vad-microphone-offline-asr
sherpa-onnx-vad-with-offline-asr
)
if(SHERPA_ONNX_ENABLE_TTS)
list(APPEND exes