Add Java and Kotlin API for NeMo Canary models (#2359)

Add support for the NeMo Canary model in both Java and Kotlin APIs, wiring it through
JNI and updating examples and CI.

- Introduce OfflineCanaryModelConfig in Kotlin and Java with builder patterns
- Extend OfflineRecognizer to accept and apply the new canary config via setConfig
- Update JNI binding (GetOfflineConfig) and getOfflineModelConfig mapping (type 32), 
   plus examples and CI workflows
This commit is contained in:
Fangjun Kuang
2025-07-08 13:45:26 +08:00
committed by GitHub
parent df4615ca1d
commit 103e93d9f6
12 changed files with 363 additions and 11 deletions

View File

@@ -117,6 +117,13 @@ jobs:
cd ./java-api-examples
./run-version-test.sh
- name: Run java test (Nemo Canary)
shell: bash
run: |
cd ./java-api-examples
./run-non-streaming-decode-file-nemo-canary.sh
rm -rf sherpa-onnx-nemo-*
- name: Run java test (Non-streaming SenseVoice with homophone replacer)
shell: bash
run: |