Add Kotlin and Java API for Dolphin CTC models (#2086)

This commit is contained in:
Fangjun Kuang
2025-04-02 21:16:14 +08:00
committed by GitHub
parent 0de7e1b9f0
commit eee5575836
20 changed files with 517 additions and 18 deletions

View File

@@ -23,8 +23,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
total: ["4"]
index: ["0", "1", "2", "3"]
total: ["16"]
index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"]
steps:
- uses: actions/checkout@v4

View File

@@ -23,8 +23,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
total: ["10"]
index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
total: ["18"]
index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17"]
steps:
- uses: actions/checkout@v4

View File

@@ -105,6 +105,16 @@ jobs:
make -j4
ls -lh lib
- name: Run java test (VAD + Non-streaming Dolphin CTC)
shell: bash
run: |
cd ./java-api-examples
./run-vad-non-streaming-dolphin-ctc.sh
rm *.onnx
ls -lh *.wav
rm *.wav
rm -rf sherpa-onnx-dolphin-*
- name: Run speech enhancement (GTCRN)
shell: bash
run: |
@@ -135,6 +145,9 @@ jobs:
run: |
cd ./java-api-examples
./run-non-streaming-decode-file-dolphin-ctc.sh
rm -rf sherpa-onnx-dolphin-*
./run-non-streaming-decode-file-moonshine.sh
rm -rf sherpa-onnx-moonshine-*