From 4a2c94abec978fc679d54e935f9fc79048c138be Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 1 Aug 2024 17:43:28 +0800 Subject: [PATCH] Add CI tests --- .github/scripts/test-offline-ctc.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/scripts/test-offline-ctc.sh b/.github/scripts/test-offline-ctc.sh index dea791b54..05db35a20 100755 --- a/.github/scripts/test-offline-ctc.sh +++ b/.github/scripts/test-offline-ctc.sh @@ -36,6 +36,17 @@ for m in model.onnx model.int8.onnx; do done done + +# test wav reader for non-standard wav files +curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/naudio.wav +curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/junk-padding.wav + +time $EXE \ + --tokens=$repo/tokens.txt \ + --sense-voice-model=$repo/model.int8.onnx \ + ./naudio.wav \ + ./junk-padding.wav + rm -rf $repo if true; then