Skip to content

Commit

Permalink
Add C++ API for streaming zipformer ASR on RK NPU (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Feb 24, 2025
1 parent bafd110 commit 4d79e6a
Show file tree
Hide file tree
Showing 73 changed files with 1,909 additions and 120 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/aarch64-linux-gnu-shared.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
Expand All @@ -207,9 +208,10 @@ jobs:
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs huggingface
cd huggingface
mkdir -p aarch64
dst=aarch64/$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../sherpa-onnx-*-shared*.tar.bz2 ./aarch64
cp -v ../sherpa-onnx-*-shared*.tar.bz2 $dst/
git status
git lfs track "*.bz2"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/aarch64-linux-gnu-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
Expand All @@ -132,9 +133,10 @@ jobs:
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs huggingface
cd huggingface
mkdir -p aarch64
dst=aarch64/$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../sherpa-onnx-*-static.tar.bz2 ./aarch64
cp -v ../sherpa-onnx-*-static.tar.bz2 $dst/
git status
git lfs track "*.bz2"
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/android-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
du -h -d1 .
Expand All @@ -150,8 +151,10 @@ jobs:
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs huggingface
cd huggingface
dst=$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../sherpa-onnx-*-android*.tar.bz2 ./
cp -v ../sherpa-onnx-*-android*.tar.bz2 $dst/
git status
git lfs track "*.bz2"
Expand Down Expand Up @@ -263,6 +266,7 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
du -h -d1 .
Expand All @@ -273,7 +277,7 @@ jobs:
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs huggingface
cd huggingface
dst=android/aar
dst=android/aar/$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../*.aar $dst
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/arm-linux-gnueabihf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,18 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
rm -rf huggingface
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs huggingface
cd huggingface
mkdir -p arm32
dst=arm32/$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../sherpa-onnx-*.tar.bz2 ./arm32
cp -v ../sherpa-onnx-*.tar.bz2 $dst/
git status
git lfs track "*.bz2"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/dot-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
Expand All @@ -95,9 +96,10 @@ jobs:
cd huggingface
git fetch
git pull
mkdir -p windows-for-dotnet
dst=windows-for-dotnet/$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../sherpa-onnx-*.tar.bz2 ./windows-for-dotnet
cp -v ../sherpa-onnx-*.tar.bz2 $dst/
git status
git lfs track "*.bz2"
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/linux-jni-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
Expand All @@ -146,10 +147,11 @@ jobs:
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
cd huggingface
mkdir -p jni
dst=jni/$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../sherpa-onnx-*.tar.bz2 ./jni
cp -v ../*.jar ./jni
cp -v ../sherpa-onnx-*.tar.bz2 $dst/
cp -v ../*.jar $dst/
git status
git lfs track "*.bz2"
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/linux-jni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
Expand All @@ -205,10 +206,11 @@ jobs:
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
cd huggingface
mkdir -p jni
dst=jni/$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../sherpa-onnx-*.tar.bz2 ./jni
cp -v ../*.jar ./jni
cp -v ../sherpa-onnx-*.tar.bz2 $dst/
cp -v ../*.jar $dst/
git status
git lfs track "*.bz2"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/macos-jni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
Expand All @@ -121,9 +122,10 @@ jobs:
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
cd huggingface
mkdir -p jni
dst=jni/$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../sherpa-onnx-*.tar.bz2 ./jni
cp -v ../sherpa-onnx-*.tar.bz2 $dst
git status
git lfs track "*.bz2"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/riscv64-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ jobs:
timeout_seconds: 200
shell: bash
command: |
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
git config --global user.email "[email protected]"
git config --global user.name "Fangjun Kuang"
Expand All @@ -248,9 +249,10 @@ jobs:
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
cd huggingface
mkdir -p riscv64
dst=riscv64/$SHERPA_ONNX_VERSION
mkdir -p $dst
cp -v ../sherpa-onnx-*-shared.tar.bz2 ./riscv64
cp -v ../sherpa-onnx-*-shared.tar.bz2 $dst/
git status
git lfs track "*.bz2"
Expand Down
Loading

0 comments on commit 4d79e6a

Please sign in to comment.