Add Kotlin and Java API for online punctuation models (#1936)

This commit is contained in:
Fangjun Kuang
2025-02-27 16:52:36 +08:00
committed by GitHub
parent 815ebac8f9
commit f5dfcf8d2f
16 changed files with 474 additions and 13 deletions

View File

@@ -105,6 +105,22 @@ jobs:
make -j4
ls -lh lib
- name: Run java test (Online add punctuations)
shell: bash
run: |
cd ./java-api-examples
./run-online-add-punctuation-zh-en.sh
# Delete model files to save space
rm -rf sherpa-onnx-online-*
- name: Run java test (Offline add punctuations)
shell: bash
run: |
cd ./java-api-examples
./run-offline-add-punctuation-zh-en.sh
# Delete model files to save space
rm -rf sherpa-onnx-punct-*
- name: Run java test (Non-Streaming ASR)
shell: bash
run: |
@@ -196,13 +212,6 @@ jobs:
./run-audio-tagging-ced-from-file.sh
rm -rf sherpa-onnx-ced-*
- name: Run java test (add punctuations)
shell: bash
run: |
cd ./java-api-examples
./run-add-punctuation-zh-en.sh
# Delete model files to save space
rm -rf sherpa-onnx-punct-*
- name: Run java test (Spoken language identification)
shell: bash