-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add C++ API for streaming zipformer ASR on RK NPU (#1908)
- Loading branch information
1 parent
bafd110
commit 4d79e6a
Showing
73 changed files
with
1,909 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 . | ||
|
@@ -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" | ||
|
@@ -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 . | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
|
Oops, something went wrong.