From 383c4b7c1ccdd8907d82716e19f2c8e18beca652 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 11 Apr 2024 11:03:29 +0800 Subject: [PATCH] Add CI for Python audio tagging examples --- .github/scripts/test-python.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/scripts/test-python.sh b/.github/scripts/test-python.sh index 3604a0059..aa9b795f1 100755 --- a/.github/scripts/test-python.sh +++ b/.github/scripts/test-python.sh @@ -8,6 +8,15 @@ log() { echo -e "$(date '+%Y-%m-%d %H:%M:%S') (${fname}:${BASH_LINENO[0]}:${FUNCNAME[1]}) $*" } +log "test audio tagging" + +curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/audio-tagging-models/sherpa-onnx-zipformer-audio-tagging-2024-04-09.tar.bz2 +tar xvf sherpa-onnx-zipformer-audio-tagging-2024-04-09.tar.bz2 +rm sherpa-onnx-zipformer-audio-tagging-2024-04-09.tar.bz2 + python3 ./python-api-examples/audio-tagging-from-a-file.py +rm -rf sherpa-onnx-zipformer-audio-tagging-2024-04-09 + + log "test streaming zipformer2 ctc HLG decoding" curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18.tar.bz2