Fix nemo streaming transducer greedy search (#944)
This commit is contained in:
39
.github/scripts/test-online-transducer.sh
vendored
39
.github/scripts/test-online-transducer.sh
vendored
@@ -15,6 +15,45 @@ echo "PATH: $PATH"
|
||||
|
||||
which $EXE
|
||||
|
||||
log "------------------------------------------------------------"
|
||||
log "Run NeMo transducer (English)"
|
||||
log "------------------------------------------------------------"
|
||||
repo_url=https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-streaming-fast-conformer-transducer-en-80ms.tar.bz2
|
||||
curl -SL -O $repo_url
|
||||
tar xvf sherpa-onnx-nemo-streaming-fast-conformer-transducer-en-80ms.tar.bz2
|
||||
rm sherpa-onnx-nemo-streaming-fast-conformer-transducer-en-80ms.tar.bz2
|
||||
repo=sherpa-onnx-nemo-streaming-fast-conformer-transducer-en-80ms
|
||||
|
||||
log "Start testing ${repo_url}"
|
||||
|
||||
waves=(
|
||||
$repo/test_wavs/0.wav
|
||||
$repo/test_wavs/1.wav
|
||||
$repo/test_wavs/8k.wav
|
||||
)
|
||||
|
||||
for wave in ${waves[@]}; do
|
||||
time $EXE \
|
||||
--tokens=$repo/tokens.txt \
|
||||
--encoder=$repo/encoder.onnx \
|
||||
--decoder=$repo/decoder.onnx \
|
||||
--joiner=$repo/joiner.onnx \
|
||||
--num-threads=2 \
|
||||
$wave
|
||||
done
|
||||
|
||||
time $EXE \
|
||||
--tokens=$repo/tokens.txt \
|
||||
--encoder=$repo/encoder.onnx \
|
||||
--decoder=$repo/decoder.onnx \
|
||||
--joiner=$repo/joiner.onnx \
|
||||
--num-threads=2 \
|
||||
$repo/test_wavs/0.wav \
|
||||
$repo/test_wavs/1.wav \
|
||||
$repo/test_wavs/8k.wav
|
||||
|
||||
rm -rf $repo
|
||||
|
||||
log "------------------------------------------------------------"
|
||||
log "Run LSTM transducer (English)"
|
||||
log "------------------------------------------------------------"
|
||||
|
||||
@@ -196,7 +196,6 @@ jobs:
|
||||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
|
||||
|
||||
cd huggingface
|
||||
git lfs pull
|
||||
mkdir -p aarch64
|
||||
|
||||
cp -v ../sherpa-onnx-*-shared.tar.bz2 ./aarch64
|
||||
|
||||
@@ -187,7 +187,6 @@ jobs:
|
||||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
|
||||
|
||||
cd huggingface
|
||||
git lfs pull
|
||||
mkdir -p aarch64
|
||||
|
||||
cp -v ../sherpa-onnx-*-static.tar.bz2 ./aarch64
|
||||
|
||||
1
.github/workflows/android.yaml
vendored
1
.github/workflows/android.yaml
vendored
@@ -124,7 +124,6 @@ jobs:
|
||||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
|
||||
|
||||
cd huggingface
|
||||
git lfs pull
|
||||
|
||||
cp -v ../sherpa-onnx-*-android.tar.bz2 ./
|
||||
|
||||
|
||||
1
.github/workflows/arm-linux-gnueabihf.yaml
vendored
1
.github/workflows/arm-linux-gnueabihf.yaml
vendored
@@ -209,7 +209,6 @@ jobs:
|
||||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
|
||||
|
||||
cd huggingface
|
||||
git lfs pull
|
||||
mkdir -p arm32
|
||||
|
||||
cp -v ../sherpa-onnx-*.tar.bz2 ./arm32
|
||||
|
||||
1
.github/workflows/build-xcframework.yaml
vendored
1
.github/workflows/build-xcframework.yaml
vendored
@@ -138,7 +138,6 @@ jobs:
|
||||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
|
||||
|
||||
cd huggingface
|
||||
git lfs pull
|
||||
|
||||
cp -v ../sherpa-onnx-*.tar.bz2 ./
|
||||
|
||||
|
||||
1
.github/workflows/riscv64-linux.yaml
vendored
1
.github/workflows/riscv64-linux.yaml
vendored
@@ -242,7 +242,6 @@ jobs:
|
||||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
|
||||
|
||||
cd huggingface
|
||||
git lfs pull
|
||||
mkdir -p riscv64
|
||||
|
||||
cp -v ../sherpa-onnx-*-shared.tar.bz2 ./riscv64
|
||||
|
||||
1
.github/workflows/windows-x64.yaml
vendored
1
.github/workflows/windows-x64.yaml
vendored
@@ -219,7 +219,6 @@ jobs:
|
||||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
|
||||
|
||||
cd huggingface
|
||||
git lfs pull
|
||||
mkdir -p win64
|
||||
|
||||
cp -v ../sherpa-onnx-*.tar.bz2 ./win64
|
||||
|
||||
1
.github/workflows/windows-x86.yaml
vendored
1
.github/workflows/windows-x86.yaml
vendored
@@ -221,7 +221,6 @@ jobs:
|
||||
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
|
||||
|
||||
cd huggingface
|
||||
git lfs pull
|
||||
mkdir -p win32
|
||||
|
||||
cp -v ../sherpa-onnx-*.tar.bz2 ./win32
|
||||
|
||||
Reference in New Issue
Block a user