Fangjun Kuang
Committed by GitHub
@@ -4,6 +4,7 @@ on: @@ -4,6 +4,7 @@ on:
4 push: 4 push:
5 branches: 5 branches:
6 - upload-models 6 - upload-models
  7 + - more-models
7 workflow_dispatch: 8 workflow_dispatch:
8 9
9 concurrency: 10 concurrency:
@@ -30,6 +31,50 @@ jobs: @@ -30,6 +31,50 @@ jobs:
30 git config --global user.email "csukuangfj@gmail.com" 31 git config --global user.email "csukuangfj@gmail.com"
31 git config --global user.name "Fangjun Kuang" 32 git config --global user.name "Fangjun Kuang"
32 33
  34 + - name: Streaming zipformer from Banafo/Kroko-ASR
  35 + if: true
  36 + shell: bash
  37 + env:
  38 + HF_TOKEN: ${{ secrets.HF_TOKEN }}
  39 + run: |
  40 + git lfs install
  41 + git clone https://csukuangfj:$HF_TOKEN@huggingface.co/Banafo/Kroko-ASR src
  42 +
  43 + for lang in en es fr; do
  44 + repo=sherpa-onnx-streaming-zipformer-$lang-kroko-2025-08-06
  45 + git clone https://huggingface.co/csukuangfj/$repo
  46 + cp src/${lang}_encoder.onnx $repo/encoder.onnx
  47 + cp src/${lang}_decoder.onnx $repo/decoder.onnx
  48 + cp src/${lang}_joiner.onnx $repo/joiner.onnx
  49 + cp src/${lang}_tokens.txt $repo/tokens.txt
  50 +
  51 + pushd $repo
  52 +
  53 + echo "See license at https://huggingface.co/Banafo/Kroko-ASR" > README.md
  54 +
  55 + mkdir -p test_wavs
  56 + pushd test_wavs
  57 + curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/$lang.wav
  58 + mv $lang.wav 0.wav
  59 + popd
  60 +
  61 + git lfs track "*.onnx" "*.wav"
  62 + git status
  63 + ls -lh
  64 + git add .
  65 + git commit -m 'add model files' || true
  66 + git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/$repo main || true
  67 +
  68 + popd
  69 +
  70 +
  71 + rm -rf $repo/.git*
  72 +
  73 + tar cjfv $repo.tar.bz2 $repo
  74 +
  75 + ls -lh *.tar.bz2
  76 + done
  77 +
33 - name: FireRed ASR fp16 78 - name: FireRed ASR fp16
34 if: false 79 if: false
35 shell: bash 80 shell: bash
@@ -383,6 +383,48 @@ def get_models(): @@ -383,6 +383,48 @@ def get_models():
383 popd 383 popd
384 """, 384 """,
385 ), 385 ),
  386 + Model(
  387 + model_name="sherpa-onnx-streaming-zipformer-en-kroko-2025-08-06",
  388 + idx=21,
  389 + lang="en",
  390 + short_name="zipformer_kroko_asr",
  391 + cmd="""
  392 + pushd $model_name
  393 + rm -rf test_wavs
  394 +
  395 + ls -lh
  396 +
  397 + popd
  398 + """,
  399 + ),
  400 + Model(
  401 + model_name="sherpa-onnx-streaming-zipformer-es-kroko-2025-08-06",
  402 + idx=22,
  403 + lang="es",
  404 + short_name="zipformer_kroko_asr",
  405 + cmd="""
  406 + pushd $model_name
  407 + rm -rf test_wavs
  408 +
  409 + ls -lh
  410 +
  411 + popd
  412 + """,
  413 + ),
  414 + Model(
  415 + model_name="sherpa-onnx-streaming-zipformer-fr-kroko-2025-08-06",
  416 + idx=23,
  417 + lang="fr",
  418 + short_name="zipformer_kroko_asr",
  419 + cmd="""
  420 + pushd $model_name
  421 + rm -rf test_wavs
  422 +
  423 + ls -lh
  424 +
  425 + popd
  426 + """,
  427 + ),
386 ] 428 ]
387 429
388 return models 430 return models
  1 +# Introduction
  2 +
  3 +See also https://github.com/KittenML/KittenTTS
@@ -440,6 +440,45 @@ fun getModelConfig(type: Int): OnlineModelConfig? { @@ -440,6 +440,45 @@ fun getModelConfig(type: Int): OnlineModelConfig? {
440 ) 440 )
441 } 441 }
442 442
  443 + 21 -> {
  444 + val modelDir = "sherpa-onnx-streaming-zipformer-en-kroko-2025-08-06"
  445 + return OnlineModelConfig(
  446 + transducer = OnlineTransducerModelConfig(
  447 + encoder = "$modelDir/encoder.onnx",
  448 + decoder = "$modelDir/decoder.onnx",
  449 + joiner = "$modelDir/joiner.onnx",
  450 + ),
  451 + tokens = "$modelDir/tokens.txt",
  452 + modelType = "zipformer2",
  453 + )
  454 + }
  455 +
  456 + 22 -> {
  457 + val modelDir = "sherpa-onnx-streaming-zipformer-es-kroko-2025-08-06"
  458 + return OnlineModelConfig(
  459 + transducer = OnlineTransducerModelConfig(
  460 + encoder = "$modelDir/encoder.onnx",
  461 + decoder = "$modelDir/decoder.onnx",
  462 + joiner = "$modelDir/joiner.onnx",
  463 + ),
  464 + tokens = "$modelDir/tokens.txt",
  465 + modelType = "zipformer2",
  466 + )
  467 + }
  468 +
  469 + 23 -> {
  470 + val modelDir = "sherpa-onnx-streaming-zipformer-fr-kroko-2025-08-06"
  471 + return OnlineModelConfig(
  472 + transducer = OnlineTransducerModelConfig(
  473 + encoder = "$modelDir/encoder.onnx",
  474 + decoder = "$modelDir/decoder.onnx",
  475 + joiner = "$modelDir/joiner.onnx",
  476 + ),
  477 + tokens = "$modelDir/tokens.txt",
  478 + modelType = "zipformer2",
  479 + )
  480 + }
  481 +
443 1000 -> { 482 1000 -> {
444 val modelDir = "sherpa-onnx-rk3588-streaming-zipformer-bilingual-zh-en-2023-02-20" 483 val modelDir = "sherpa-onnx-rk3588-streaming-zipformer-bilingual-zh-en-2023-02-20"
445 return OnlineModelConfig( 484 return OnlineModelConfig(