add vad+sense voice example for C API (#1291)

This commit is contained in:
Fangjun Kuang
2024-08-27 16:11:24 +08:00
committed by GitHub
parent a8556e31ba
commit 6ec57327ce
9 changed files with 267 additions and 43 deletions

View File

@@ -19,8 +19,6 @@
#include "sherpa-onnx/c-api/c-api.h"
int32_t main() {
// You can find more test waves from
// https://hf-mirror.com/spaces/k2-fsa/spoken-language-identification/tree/main/test_wavs
const char *wav_filename =
"./sherpa-onnx-sense-voice-zh-en-ja-ko-yue-2024-07-17/test_wavs/en.wav";
const char *model_filename =