X-ASR-zh-en (offline, with punctuation) in LiteRT form

These files are a LiteRT (.tflite) conversion of the offline Chinese-English Zipformer transducer from X-ASR (Apache-2.0), made from the ONNX export csukuangfj2/sherpa-onnx-x-asr-zipformer-transducer-zh-en-punct-2026-06-03. The weights are the original model's; no training or fine-tuning was done.

File Bytes Notes
encoder-fconly-dyn8.tflite 198,704,432 fixed input, 1000 feature frames (10 s); fully-connected weights int8 (dynamic range), the other weights float32
decoder-fp32.tflite 13,393,748 stateless decoder, context size 2, float32
joiner-fp32.tflite 10,261,224 float32
tokens.txt 58,806 5,000 tokens, blank id 0, <unk> id 4015

Tensors

  • Encoder: x float32 [1, 1000, 80], x_lens int32 [1] -> encoder_out float32 [1, 248, 512], encoder_out_lens.
  • Decoder: y int32 [1, 2] -> decoder_out float32 [1, 512]. Start context [-1, 0].
  • Joiner: encoder_out float32 [1, 512], decoder_out float32 [1, 512] -> logit float32 [1, 5000].

How to use

  • Features: Kaldi fbank, 16 kHz, samples in [-1, 1], 25 ms frame, 10 ms shift, dither 0, snip_edges false, remove DC offset, pre-emphasis 0.97, Povey window, 80 mel bins, low 20 Hz, high Nyquist - 400 Hz, log energy, no normalisation.
  • Pad the features to 1000 frames with -23.025850929940457, give the true frame count in x_lens, and use only the first encoder_out_lens output frames. Cut audio longer than 10 s into windows.
  • Greedy search: at most one symbol per encoder frame; skip blank (0) and <unk> (4015).
  • Text: a leading ▁ becomes a space; remove a space between two CJK characters and before punctuation; trim. The model writes Simplified Chinese with punctuation and casing.

Conversion

Encoder: input shape fixed, shape subgraphs folded to constants, converted with onnx2tf, BATCH_MATMUL with constant weights rewritten as FULLY_CONNECTED, then dynamic-range quantisation of the fully-connected weights. Decoder: one grouped convolution rewritten as an equal matrix product, then converted. Joiner: converted as is.

Checks made on 300 utterances of public Mandarin-English test data (200 from ky552/ML2021_ASR_ST, 100 from CAiRE/ASCEND): the float32 LiteRT encoder gives the same text as the float32 ONNX encoder on 300 of 300; the three LiteRT files together give mixed error rate 15.43% and 12.18% on the two sets, against 15.34% and 11.84% for the int8 ONNX model run with sherpa-onnx (the difference on the second set comes from three utterances longer than 10 s that were cut, not windowed, in this check).

Licence

Apache-2.0, as the original model. See the X-ASR repository for the model's authors and citation.

Downloads last month
8
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Nothing-Tech-AI-Native/x-asr-zh-en-litert

Finetuned
(3)
this model