From c34ab3559187a065f0e607c3d120ed203f1a4bcc Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 14 Nov 2024 20:57:35 +0800 Subject: [PATCH] Add Android APK for streaming Paraformer ASR (#1538) --- .github/workflows/apk-asr.yaml | 4 ++-- scripts/apk/generate-asr-apk-script.py | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/apk-asr.yaml b/.github/workflows/apk-asr.yaml index c51ce1e20..e49b179c8 100644 --- a/.github/workflows/apk-asr.yaml +++ b/.github/workflows/apk-asr.yaml @@ -23,8 +23,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - total: ["3"] - index: ["0", "1", "2"] + total: ["6"] + index: ["0", "1", "2", "3", "4", "5"] steps: - uses: actions/checkout@v4 diff --git a/scripts/apk/generate-asr-apk-script.py b/scripts/apk/generate-asr-apk-script.py index 608532176..bda643c01 100755 --- a/scripts/apk/generate-asr-apk-script.py +++ b/scripts/apk/generate-asr-apk-script.py @@ -243,6 +243,23 @@ def get_models(): ls -lh + popd + """, + ), + Model( + model_name="sherpa-onnx-streaming-paraformer-bilingual-zh-en", + idx=5, + lang="zh_en", + short_name="paraformer", + cmd=""" + pushd $model_name + rm -fv decoder.onnx + rm -fv encoder.onnx + + rm -rfv test_wavs + + ls -lh + popd """, ),