Add VAD examples using ALSA for recording (#739)

This commit is contained in:
Fangjun Kuang
2024-04-08 16:41:01 +08:00
committed by GitHub
parent a5f8fbc83f
commit 6fb8ceda57
17 changed files with 601 additions and 9 deletions

View File

@@ -67,6 +67,7 @@ def get_binaries():
"sherpa-onnx-alsa-offline",
"sherpa-onnx-alsa-offline-speaker-identification",
"sherpa-onnx-offline-tts-play-alsa",
"sherpa-onnx-vad-alsa",
]
if is_windows():

View File

@@ -75,6 +75,10 @@ function(download_openfst)
set_target_properties(fst PROPERTIES OUTPUT_NAME "sherpa-onnx-fst")
set_target_properties(fstfar PROPERTIES OUTPUT_NAME "sherpa-onnx-fstfar")
if(LINUX)
target_compile_options(fst PUBLIC -Wno-missing-template-keyword)
endif()
target_include_directories(fst
PUBLIC
${openfst_SOURCE_DIR}/src/include