Fix reading non-standard wav files. (#1199)

This commit is contained in:
Fangjun Kuang
2024-08-01 17:48:04 +08:00
committed by GitHub
parent ec98110e11
commit 53484fcd9b
2 changed files with 122 additions and 62 deletions

View File

@@ -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