diff --git a/.github/scripts/test-kws.sh b/.github/scripts/test-kws.sh index 26f45b4fcc..8feb43fbc3 100755 --- a/.github/scripts/test-kws.sh +++ b/.github/scripts/test-kws.sh @@ -22,7 +22,7 @@ log "Start testing ${repo_url}" repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01 log "Download pretrained model and test-data from $repo_url" -wget $repo_url +wget -qq $repo_url tar jxvf ${repo}.tar.bz time $EXE \ @@ -47,8 +47,8 @@ log "Start testing ${repo_url}" repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01 log "Download pretrained model and test-data from $repo_url" -wget $repo_url -tar jxvf ${ropo}.tar.bz +wget -qq $repo_url +tar jxvf ${repo}.tar.bz time $EXE \ --tokens=$repo/tokens.txt \ diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 8c2c6749a7..8c6dfdde5b 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -8,6 +8,7 @@ on: - '*' paths: - '.github/workflows/linux.yaml' + - '.github/scripts/test-kws.sh' - '.github/scripts/test-online-transducer.sh' - '.github/scripts/test-online-paraformer.sh' - '.github/scripts/test-offline-transducer.sh' @@ -24,6 +25,7 @@ on: - master paths: - '.github/workflows/linux.yaml' + - '.github/scripts/test-kws.sh' - '.github/scripts/test-online-transducer.sh' - '.github/scripts/test-online-paraformer.sh' - '.github/scripts/test-offline-transducer.sh' diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index 7c3b9940ab..27635ff5b9 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -8,6 +8,7 @@ on: - '*' paths: - '.github/workflows/macos.yaml' + - '.github/scripts/test-kws.sh' - '.github/scripts/test-online-transducer.sh' - '.github/scripts/test-online-paraformer.sh' - '.github/scripts/test-offline-transducer.sh' @@ -22,6 +23,7 @@ on: - master paths: - '.github/workflows/macos.yaml' + - '.github/scripts/test-kws.sh' - '.github/scripts/test-online-transducer.sh' - '.github/scripts/test-online-paraformer.sh' - '.github/scripts/test-offline-transducer.sh' diff --git a/build-kws-apk.sh b/build-kws-apk.sh index cf85cf6c36..58c8a62f66 100755 --- a/build-kws-apk.sh +++ b/build-kws-apk.sh @@ -33,17 +33,17 @@ mkdir -p apks repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01 if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then - repo_url=https://www.modelscope.cn/pkufool/sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.git + + repo_url=https://github.com/pkufool/keyword-spotting-models/releases/download/v0.1/sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.tar.bz log "Start testing ${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" + wget -qq $repo_url + tar jxvf ${repo}.tar.bz - # remove .git to save spaces - rm -rf .git + pushd $repo rm *.int8.onnx - rm README.md configuration.json .gitattributes + rm README.md rm -rfv test_wavs ls -lh popd @@ -85,17 +85,15 @@ rm -rf ./android/SherpaOnnxKws/app/src/main/assets/$repo repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01 if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then - repo_url=https://www.modelscope.cn/pkufool/sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01.git + repo_url=https://github.com/pkufool/keyword-spotting-models/releases/download/v0.1/sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01.tar.bz log "Start testing ${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" + wget -qq $repo_url + tar jxvf ${repo}.tar.bz - # remove .git to save spaces - rm -rf .git + pushd $repo rm *.int8.onnx - rm README.md configuration.json .gitattributes + rm README.md rm -rfv test_wavs ls -lh popd