Add Pascal/Go/C#/Dart API for NeMo Canary ASR models (#2367)

Add support for the new NeMo Canary ASR model across multiple language bindings by introducing a Canary model configuration and setter method on the offline recognizer.

- Define Canary model config in Pascal, Go, C#, Dart and update converter functions
- Add SetConfig API for offline recognizer (Pascal, Go, C#, Dart)
- Extend CI/workflows and example scripts to test non-streaming Canary decoding
This commit is contained in:
Fangjun Kuang
2025-07-10 14:53:33 +08:00
committed by GitHub
parent e2b2d5ea57
commit fd9a687ec2
27 changed files with 779 additions and 8 deletions

View File

@@ -156,6 +156,10 @@ jobs:
pushd non-streaming-asr
./run-nemo-canary.sh
rm -rf sherpa-onnx-*
echo "---"
./run-zipformer-ctc.sh
rm -rf sherpa-onnx-*
echo "---"

View File

@@ -76,6 +76,14 @@ jobs:
run: |
gcc --version
- name: Test NeMo Canary ASR
if: matrix.os != 'windows-latest'
shell: bash
run: |
cd go-api-examples/non-streaming-canary-decode-files
./run.sh
rm -rf sherpa-onnx-nemo-*
- name: Test speech enhancement (GTCRN)
if: matrix.os != 'windows-latest'
shell: bash

View File

@@ -108,6 +108,7 @@ jobs:
cp -v ../scripts/go/_internal/lib/x86_64-pc-windows-gnu/*.dll ../scripts/go/_internal/add-punctuation
cp -v ../scripts/go/_internal/lib/x86_64-pc-windows-gnu/*.dll ../scripts/go/_internal/audio-tagging
cp -v ../scripts/go/_internal/lib/x86_64-pc-windows-gnu/*.dll ../scripts/go/_internal/keyword-spotting-from-file/
cp -v ../scripts/go/_internal/lib/x86_64-pc-windows-gnu/*.dll ../scripts/go/_internal/non-streaming-canary-decode-files/
cp -v ../scripts/go/_internal/lib/x86_64-pc-windows-gnu/*.dll ../scripts/go/_internal/non-streaming-decode-files/
cp -v ../scripts/go/_internal/lib/x86_64-pc-windows-gnu/*.dll ../scripts/go/_internal/non-streaming-speaker-diarization/
cp -v ../scripts/go/_internal/lib/x86_64-pc-windows-gnu/*.dll ../scripts/go/_internal/non-streaming-tts/
@@ -148,6 +149,19 @@ jobs:
name: ${{ matrix.os }}-libs
path: to-upload/
- name: Test non-streaming decoding files with NeMo Canary
shell: bash
run: |
cd scripts/go/_internal/non-streaming-canary-decode-files/
ls -lh
go mod tidy
cat go.mod
go build
ls -lh
./run.sh
rm -rf sherpa-onnx-nemo-*
- name: Test streaming decoding files
shell: bash
run: |