Skip to content

Commit 5093b01

Browse files
committed
Merge remote-tracking branch 'upstream/master' into webwasm
2 parents 9f4c08a + dcaf9dd commit 5093b01

File tree

175 files changed

+4796
-703
lines changed

Some content is hidden

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

175 files changed

+4796
-703
lines changed

.github/scripts/test-dart.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ echo '----------ced----------'
6161
popd
6262

6363
pushd vad-with-non-streaming-asr
64+
65+
echo '----------Dolphin CTC----------'
66+
./run-dolphin-ctc.sh
67+
rm -rf sherpa-onnx-*
68+
6469
echo '----------TeleSpeech CTC----------'
6570
./run-telespeech-ctc.sh
6671
rm -rf sherpa-onnx-*
@@ -110,6 +115,10 @@ echo '----------NeMo transducer----------'
110115
./run-nemo-transducer.sh
111116
rm -rf sherpa-onnx-*
112117

118+
echo '----------Dolphin CTC----------'
119+
./run-dolphin-ctc.sh
120+
rm -rf sherpa-onnx-*
121+
113122
echo '----------NeMo CTC----------'
114123
./run-nemo-ctc.sh
115124
rm -rf sherpa-onnx-*

.github/scripts/test-dot-net.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ rm -rfv sherpa-onnx-pyannote-*
3939

4040
cd ../offline-decode-files
4141

42+
./run-dolphin-ctc.sh
43+
rm -rf sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02
44+
4245
./run-fire-red-asr.sh
4346
rm -rf sherpa-onnx-fire-red-asr-*
4447

.github/scripts/test-nodejs-addon-npm.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ arch=$(node -p "require('os').arch()")
1010
platform=$(node -p "require('os').platform()")
1111
node_version=$(node -p "process.versions.node.split('.')[0]")
1212

13+
echo "----------non-streaming ASR dolphin CTC----------"
14+
15+
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02.tar.bz2
16+
tar xvf sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02.tar.bz2
17+
rm sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02.tar.bz2
18+
19+
node ./test_asr_non_streaming_dolphin_ctc.js
20+
21+
rm -rf sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02
22+
1323
echo "----------non-streaming speech denoiser----------"
1424

1525
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speech-enhancement-models/gtcrn_simple.onnx

.github/scripts/test-nodejs-npm.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ git status
99
ls -lh
1010
ls -lh node_modules
1111

12+
# asr with offline dolphin ctc
13+
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02.tar.bz2
14+
tar xvf sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02.tar.bz2
15+
rm sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02.tar.bz2
16+
node ./test-offline-dolphin-ctc.js
17+
rm -rf sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02
18+
1219
# speech enhancement
1320
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speech-enhancement-models/gtcrn_simple.onnx
1421
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speech-enhancement-models/inp_16k.wav
@@ -56,7 +63,7 @@ curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/m
5663
tar xvf matcha-icefall-en_US-ljspeech.tar.bz2
5764
rm matcha-icefall-en_US-ljspeech.tar.bz2
5865

59-
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/vocos-22khz-univ.onnx
66+
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/vocos-22khz-univ.onnx
6067

6168
node ./test-offline-tts-matcha-en.js
6269

.github/scripts/test-offline-ctc.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,39 @@ echo "PATH: $PATH"
1515

1616
which $EXE
1717

18+
for type in base small; do
19+
log "------------------------------------------------------------"
20+
log "Run Dolphin CTC models ($type int8)"
21+
log "------------------------------------------------------------"
22+
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-dolphin-$type-ctc-multi-lang-int8-2025-04-02.tar.bz2
23+
tar xvf sherpa-onnx-dolphin-$type-ctc-multi-lang-int8-2025-04-02.tar.bz2
24+
rm sherpa-onnx-dolphin-$type-ctc-multi-lang-int8-2025-04-02.tar.bz2
25+
26+
$EXE \
27+
--dolphin-model=./sherpa-onnx-dolphin-$type-ctc-multi-lang-int8-2025-04-02/model.int8.onnx \
28+
--tokens=./sherpa-onnx-dolphin-$type-ctc-multi-lang-int8-2025-04-02/tokens.txt \
29+
--debug=1 \
30+
./sherpa-onnx-dolphin-$type-ctc-multi-lang-int8-2025-04-02/test_wavs/0.wav
31+
32+
rm -rf sherpa-onnx-dolphin-$type-ctc-multi-lang-int8-2025-04-02
33+
34+
log "------------------------------------------------------------"
35+
log "Run Dolphin CTC models ($type)"
36+
log "------------------------------------------------------------"
37+
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-dolphin-$type-ctc-multi-lang-2025-04-02.tar.bz2
38+
tar xvf sherpa-onnx-dolphin-$type-ctc-multi-lang-2025-04-02.tar.bz2
39+
rm sherpa-onnx-dolphin-$type-ctc-multi-lang-2025-04-02.tar.bz2
40+
41+
$EXE \
42+
--dolphin-model=./sherpa-onnx-dolphin-$type-ctc-multi-lang-2025-04-02/model.onnx \
43+
--tokens=./sherpa-onnx-dolphin-$type-ctc-multi-lang-2025-04-02/tokens.txt \
44+
--debug=1 \
45+
./sherpa-onnx-dolphin-$type-ctc-multi-lang-2025-04-02/test_wavs/0.wav
46+
47+
rm -rf sherpa-onnx-dolphin-$type-ctc-multi-lang-2025-04-02
48+
done
49+
50+
1851
log "------------------------------------------------------------"
1952
log "Run NeMo GigaAM Russian models"
2053
log "------------------------------------------------------------"

.github/scripts/test-python.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ log() {
88
echo -e "$(date '+%Y-%m-%d %H:%M:%S') (${fname}:${BASH_LINENO[0]}:${FUNCNAME[1]}) $*"
99
}
1010

11+
log "test offline dolphin ctc"
12+
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02.tar.bz2
13+
tar xvf sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02.tar.bz2
14+
rm sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02.tar.bz2
15+
16+
python3 ./python-api-examples/offline-dolphin-ctc-decode-files.py
17+
18+
rm -rf sherpa-onnx-dolphin-base-ctc-multi-lang-int8-2025-04-02
19+
1120
log "test offline speech enhancement (GTCRN)"
1221

1322
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speech-enhancement-models/gtcrn_simple.onnx

.github/scripts/test-swift.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ echo "pwd: $PWD"
77
cd swift-api-examples
88
ls -lh
99

10+
./run-dolphin-ctc-asr.sh
11+
rm -rf sherpa-onnx-dolphin-*
12+
1013
./run-speech-enhancement-gtcrn.sh
1114
ls -lh *.wav
1215

.github/workflows/android.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,18 @@ jobs:
286286
git push https://csukuangfj:[email protected]/csukuangfj/sherpa-onnx-libs main
287287
288288
- name: Release android aar
289-
if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
289+
if: github.repository_owner == 'csukuangfj' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
290+
uses: svenstaro/upload-release-action@v2
291+
with:
292+
file_glob: true
293+
overwrite: true
294+
file: ./*.aar
295+
# repo_name: k2-fsa/sherpa-onnx
296+
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
297+
# tag: v1.11.2
298+
299+
- name: Release android aar
300+
if: github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
290301
uses: svenstaro/upload-release-action@v2
291302
with:
292303
file_glob: true

.github/workflows/apk-asr-2pass.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
os: [ubuntu-latest]
26-
total: ["4"]
27-
index: ["0", "1", "2", "3"]
26+
total: ["16"]
27+
index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"]
2828

2929
steps:
3030
- uses: actions/checkout@v4

.github/workflows/apk-vad-asr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
os: [ubuntu-latest]
26-
total: ["10"]
27-
index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
26+
total: ["18"]
27+
index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17"]
2828

2929
steps:
3030
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)