Skip to content

Commit 4d79e6a

Browse files
authored
Add C++ API for streaming zipformer ASR on RK NPU (#1908)
1 parent bafd110 commit 4d79e6a

File tree

73 files changed

+1909
-120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1909
-120
lines changed

.github/workflows/aarch64-linux-gnu-shared.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ jobs:
199199
timeout_seconds: 200
200200
shell: bash
201201
command: |
202+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
202203
git config --global user.email "csukuangfj@gmail.com"
203204
git config --global user.name "Fangjun Kuang"
204205
@@ -207,9 +208,10 @@ jobs:
207208
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
208209
209210
cd huggingface
210-
mkdir -p aarch64
211+
dst=aarch64/$SHERPA_ONNX_VERSION
212+
mkdir -p $dst
211213
212-
cp -v ../sherpa-onnx-*-shared*.tar.bz2 ./aarch64
214+
cp -v ../sherpa-onnx-*-shared*.tar.bz2 $dst/
213215
214216
git status
215217
git lfs track "*.bz2"

.github/workflows/aarch64-linux-gnu-static.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ jobs:
124124
timeout_seconds: 200
125125
shell: bash
126126
command: |
127+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
127128
git config --global user.email "csukuangfj@gmail.com"
128129
git config --global user.name "Fangjun Kuang"
129130
@@ -132,9 +133,10 @@ jobs:
132133
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
133134
134135
cd huggingface
135-
mkdir -p aarch64
136+
dst=aarch64/$SHERPA_ONNX_VERSION
137+
mkdir -p $dst
136138
137-
cp -v ../sherpa-onnx-*-static.tar.bz2 ./aarch64
139+
cp -v ../sherpa-onnx-*-static.tar.bz2 $dst/
138140
139141
git status
140142
git lfs track "*.bz2"

.github/workflows/android-static.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ jobs:
140140
timeout_seconds: 200
141141
shell: bash
142142
command: |
143+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
143144
git config --global user.email "csukuangfj@gmail.com"
144145
git config --global user.name "Fangjun Kuang"
145146
du -h -d1 .
@@ -150,8 +151,10 @@ jobs:
150151
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
151152
152153
cd huggingface
154+
dst=$SHERPA_ONNX_VERSION
155+
mkdir -p $dst
153156
154-
cp -v ../sherpa-onnx-*-android*.tar.bz2 ./
157+
cp -v ../sherpa-onnx-*-android*.tar.bz2 $dst/
155158
156159
git status
157160
git lfs track "*.bz2"
@@ -263,6 +266,7 @@ jobs:
263266
timeout_seconds: 200
264267
shell: bash
265268
command: |
269+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
266270
git config --global user.email "csukuangfj@gmail.com"
267271
git config --global user.name "Fangjun Kuang"
268272
du -h -d1 .
@@ -273,7 +277,7 @@ jobs:
273277
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
274278
275279
cd huggingface
276-
dst=android/aar
280+
dst=android/aar/$SHERPA_ONNX_VERSION
277281
mkdir -p $dst
278282
279283
cp -v ../*.aar $dst

.github/workflows/arm-linux-gnueabihf.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,18 @@ jobs:
199199
timeout_seconds: 200
200200
shell: bash
201201
command: |
202+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
202203
git config --global user.email "csukuangfj@gmail.com"
203204
git config --global user.name "Fangjun Kuang"
204205
205206
rm -rf huggingface
206207
GIT_LFS_SKIP_SMUDGE=1 git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
207208
208209
cd huggingface
209-
mkdir -p arm32
210+
dst=arm32/$SHERPA_ONNX_VERSION
211+
mkdir -p $dst
210212
211-
cp -v ../sherpa-onnx-*.tar.bz2 ./arm32
213+
cp -v ../sherpa-onnx-*.tar.bz2 $dst/
212214
213215
git status
214216
git lfs track "*.bz2"

.github/workflows/dot-net.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
timeout_seconds: 200
8484
shell: bash
8585
command: |
86+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
8687
git config --global user.email "csukuangfj@gmail.com"
8788
git config --global user.name "Fangjun Kuang"
8889
@@ -95,9 +96,10 @@ jobs:
9596
cd huggingface
9697
git fetch
9798
git pull
98-
mkdir -p windows-for-dotnet
99+
dst=windows-for-dotnet/$SHERPA_ONNX_VERSION
100+
mkdir -p $dst
99101
100-
cp -v ../sherpa-onnx-*.tar.bz2 ./windows-for-dotnet
102+
cp -v ../sherpa-onnx-*.tar.bz2 $dst/
101103
102104
git status
103105
git lfs track "*.bz2"

.github/workflows/linux-jni-aarch64.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ jobs:
138138
timeout_seconds: 200
139139
shell: bash
140140
command: |
141+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
141142
git config --global user.email "csukuangfj@gmail.com"
142143
git config --global user.name "Fangjun Kuang"
143144
@@ -146,10 +147,11 @@ jobs:
146147
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
147148
148149
cd huggingface
149-
mkdir -p jni
150+
dst=jni/$SHERPA_ONNX_VERSION
151+
mkdir -p $dst
150152
151-
cp -v ../sherpa-onnx-*.tar.bz2 ./jni
152-
cp -v ../*.jar ./jni
153+
cp -v ../sherpa-onnx-*.tar.bz2 $dst/
154+
cp -v ../*.jar $dst/
153155
154156
git status
155157
git lfs track "*.bz2"

.github/workflows/linux-jni.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ jobs:
197197
timeout_seconds: 200
198198
shell: bash
199199
command: |
200+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
200201
git config --global user.email "csukuangfj@gmail.com"
201202
git config --global user.name "Fangjun Kuang"
202203
@@ -205,10 +206,11 @@ jobs:
205206
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
206207
207208
cd huggingface
208-
mkdir -p jni
209+
dst=jni/$SHERPA_ONNX_VERSION
210+
mkdir -p $dst
209211
210-
cp -v ../sherpa-onnx-*.tar.bz2 ./jni
211-
cp -v ../*.jar ./jni
212+
cp -v ../sherpa-onnx-*.tar.bz2 $dst/
213+
cp -v ../*.jar $dst/
212214
213215
git status
214216
git lfs track "*.bz2"

.github/workflows/macos-jni.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
timeout_seconds: 200
114114
shell: bash
115115
command: |
116+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
116117
git config --global user.email "csukuangfj@gmail.com"
117118
git config --global user.name "Fangjun Kuang"
118119
@@ -121,9 +122,10 @@ jobs:
121122
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
122123
123124
cd huggingface
124-
mkdir -p jni
125+
dst=jni/$SHERPA_ONNX_VERSION
126+
mkdir -p $dst
125127
126-
cp -v ../sherpa-onnx-*.tar.bz2 ./jni
128+
cp -v ../sherpa-onnx-*.tar.bz2 $dst
127129
128130
git status
129131
git lfs track "*.bz2"

.github/workflows/riscv64-linux.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ jobs:
239239
timeout_seconds: 200
240240
shell: bash
241241
command: |
242+
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
242243
git config --global user.email "csukuangfj@gmail.com"
243244
git config --global user.name "Fangjun Kuang"
244245
@@ -248,9 +249,10 @@ jobs:
248249
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-libs huggingface
249250
250251
cd huggingface
251-
mkdir -p riscv64
252+
dst=riscv64/$SHERPA_ONNX_VERSION
253+
mkdir -p $dst
252254
253-
cp -v ../sherpa-onnx-*-shared.tar.bz2 ./riscv64
255+
cp -v ../sherpa-onnx-*-shared.tar.bz2 $dst/
254256
255257
git status
256258
git lfs track "*.bz2"

0 commit comments

Comments
 (0)