Added streaming conformer test (#150)
This commit is contained in:
43
.github/scripts/test-online-transducer.sh
vendored
43
.github/scripts/test-online-transducer.sh
vendored
@@ -209,3 +209,46 @@ if [ $EXE == "sherpa-onnx-ffmpeg" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf $repo
|
rm -rf $repo
|
||||||
|
|
||||||
|
log "------------------------------------------------------------"
|
||||||
|
log "Run streaming Conformer transducer (English)"
|
||||||
|
log "------------------------------------------------------------"
|
||||||
|
|
||||||
|
repo_url=https://huggingface.co/csukuangfj/sherpa-onnx-streaming-conformer-en-2023-05-09
|
||||||
|
log "Start testing ${repo_url}"
|
||||||
|
repo=$(basename $repo_url)
|
||||||
|
log "Download pretrained model and test-data from $repo_url"
|
||||||
|
|
||||||
|
GIT_LFS_SKIP_SMUDGE=1 git clone $repo_url
|
||||||
|
pushd $repo
|
||||||
|
git lfs pull --include "*.onnx"
|
||||||
|
ls -lh *.onnx
|
||||||
|
popd
|
||||||
|
|
||||||
|
waves=(
|
||||||
|
$repo/test_wavs/0.wav
|
||||||
|
$repo/test_wavs/1.wav
|
||||||
|
$repo/test_wavs/2.wav
|
||||||
|
)
|
||||||
|
|
||||||
|
for wave in ${waves[@]}; do
|
||||||
|
time $EXE \
|
||||||
|
$repo/tokens.txt \
|
||||||
|
$repo/encoder-epoch-99-avg-1.onnx \
|
||||||
|
$repo/decoder-epoch-99-avg-1.onnx \
|
||||||
|
$repo/joiner-epoch-99-avg-1.onnx \
|
||||||
|
$wave \
|
||||||
|
2
|
||||||
|
done
|
||||||
|
|
||||||
|
for wave in ${waves[@]}; do
|
||||||
|
time $EXE \
|
||||||
|
$repo/tokens.txt \
|
||||||
|
$repo/encoder-epoch-99-avg-1.int8.onnx \
|
||||||
|
$repo/decoder-epoch-99-avg-1.int8.onnx \
|
||||||
|
$repo/joiner-epoch-99-avg-1.int8.onnx \
|
||||||
|
$wave \
|
||||||
|
2
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -rf $repo
|
||||||
|
|||||||
Reference in New Issue
Block a user