This PR adds support for non-streaming Zipformer CTC ASR models across multiple language bindings, WebAssembly, examples, and CI workflows. - Introduces a new OfflineZipformerCtcModelConfig in C/C++, Python, Swift, Java, Kotlin, Go, Dart, Pascal, and C# APIs - Updates initialization, freeing, and recognition logic to include Zipformer CTC in WASM and Node.js - Adds example scripts and CI steps for downloading, building, and running Zipformer CTC models Model doc is available at https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/icefall/zipformer.html
195 lines
3.5 KiB
Bash
Executable File
195 lines
3.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
cd dart-api-examples
|
|
|
|
pushd non-streaming-asr
|
|
|
|
echo '----------Zipformer CTC----------'
|
|
./run-zipformer-ctc.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------SenseVoice----------'
|
|
./run-sense-voice-with-hr.sh
|
|
./run-sense-voice.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------FireRedAsr----------'
|
|
./run-fire-red-asr.sh
|
|
rm -rf sherpa-onnx-fire-red-asr-*
|
|
|
|
echo '----------NeMo transducer----------'
|
|
./run-nemo-transducer.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------Dolphin CTC----------'
|
|
./run-dolphin-ctc.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------NeMo CTC----------'
|
|
./run-nemo-ctc.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------TeleSpeech CTC----------'
|
|
./run-telespeech-ctc.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------moonshine----------'
|
|
./run-moonshine.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------whisper----------'
|
|
./run-whisper.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------zipformer transducer----------'
|
|
./run-zipformer-transducer.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------paraformer itn----------'
|
|
./run-paraformer-itn.sh
|
|
|
|
echo '----------paraformer----------'
|
|
./run-paraformer.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------VAD with paraformer----------'
|
|
./run-vad-with-paraformer.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
popd # non-streaming-asr
|
|
|
|
pushd speech-enhancement-gtcrn
|
|
echo "speech enhancement with gtcrn models"
|
|
./run.sh
|
|
ls -lh
|
|
popd
|
|
|
|
pushd tts
|
|
|
|
echo '----------matcha tts----------'
|
|
./run-kokoro-zh-en.sh
|
|
./run-kokoro-en.sh
|
|
./run-matcha-zh.sh
|
|
./run-matcha-en.sh
|
|
ls -lh *.wav
|
|
rm -rf matcha-icefall-*
|
|
rm *.onnx
|
|
|
|
echo '----------piper tts----------'
|
|
./run-piper.sh
|
|
rm -rf vits-piper-*
|
|
|
|
echo '----------coqui tts----------'
|
|
./run-coqui.sh
|
|
rm -rf vits-coqui-*
|
|
|
|
echo '----------zh tts----------'
|
|
./run-vits-zh.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
ls -lh *.wav
|
|
|
|
popd # tts
|
|
|
|
pushd speaker-diarization
|
|
echo '----------speaker diarization----------'
|
|
./run.sh
|
|
popd
|
|
|
|
pushd speaker-identification
|
|
echo '----------3d speaker----------'
|
|
./run-3d-speaker.sh
|
|
popd
|
|
|
|
pushd add-punctuations
|
|
echo '----------CT Transformer----------'
|
|
./run-ct-transformer.sh
|
|
popd
|
|
|
|
pushd audio-tagging
|
|
echo '----------zipformer----------'
|
|
./run-zipformer.sh
|
|
|
|
echo '----------ced----------'
|
|
./run-ced.sh
|
|
popd
|
|
|
|
pushd vad-with-non-streaming-asr
|
|
|
|
echo '----------Zipformer CTC----------'
|
|
./run-zipformer-ctc.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------Dolphin CTC----------'
|
|
./run-dolphin-ctc.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------TeleSpeech CTC----------'
|
|
./run-telespeech-ctc.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo "----zipformer transducer----"
|
|
./run-zipformer-transducer.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo "----moonshine----"
|
|
./run-moonshine.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo "----whisper----"
|
|
./run-whisper.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo "----paraformer----"
|
|
./run-paraformer.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo "----SenseVoice zh----"
|
|
./run-sense-voice-zh-2.sh
|
|
./run-sense-voice-zh.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo "----SenseVoice en----"
|
|
./run-sense-voice-en.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
popd
|
|
|
|
pushd keyword-spotter
|
|
./run-zh.sh
|
|
popd
|
|
|
|
pushd streaming-asr
|
|
|
|
echo '----------streaming zipformer ctc HLG----------'
|
|
./run-zipformer-ctc-hlg.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------streaming zipformer ctc----------'
|
|
./run-zipformer-ctc.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------streaming zipformer transducer----------'
|
|
./run-zipformer-transducer-itn.sh
|
|
./run-zipformer-transducer.sh
|
|
rm -f itn*
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------streaming NeMo transducer----------'
|
|
./run-nemo-transducer.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
echo '----------streaming paraformer----------'
|
|
./run-paraformer.sh
|
|
rm -rf sherpa-onnx-*
|
|
|
|
popd # streaming-asr
|
|
|
|
pushd vad
|
|
./run.sh
|
|
rm *.onnx
|
|
popd
|
|
|