Add microphone streaming ASR example for C API (#650)

This commit is contained in:
Fangjun Kuang
2024-03-08 19:31:46 +08:00
committed by GitHub
parent d3287f9494
commit 4b708e055c
8 changed files with 285 additions and 1 deletions

View File

@@ -6,3 +6,9 @@ target_link_libraries(decode-file-c-api sherpa-onnx-c-api cargs)
add_executable(offline-tts-c-api offline-tts-c-api.c)
target_link_libraries(offline-tts-c-api sherpa-onnx-c-api cargs)
if(SHERPA_ONNX_HAS_ALSA)
add_subdirectory(./asr-microphone-example)
else()
message(WARNING "Not include ./asr-microphone-example since alsa is not available")
endif()