Instructions to use Nothing-Tech-AI-Native/x-asr-zh-en-litert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use Nothing-Tech-AI-Native/x-asr-zh-en-litert with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
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:
xfloat32[1, 1000, 80],x_lensint32[1]->encoder_outfloat32[1, 248, 512],encoder_out_lens. - Decoder:
yint32[1, 2]->decoder_outfloat32[1, 512]. Start context[-1, 0]. - Joiner:
encoder_outfloat32[1, 512],decoder_outfloat32[1, 512]->logitfloat32[1, 5000].
How to use
- Features: Kaldi fbank, 16 kHz, samples in [-1, 1], 25 ms frame, 10 ms shift, dither 0,
snip_edgesfalse, 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 inx_lens, and use only the firstencoder_out_lensoutput 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
Model tree for Nothing-Tech-AI-Native/x-asr-zh-en-litert
Base model
GilgameshWind/X-ASR-zh-en