Instructions to use nectec/Pathumma-asr-streaming-th-0.6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use nectec/Pathumma-asr-streaming-th-0.6b with NeMo:
import nemo.collections.asr as nemo_asr asr_model = nemo_asr.models.ASRModel.from_pretrained("nectec/Pathumma-asr-streaming-th-0.6b") transcriptions = asr_model.transcribe(["file.wav"]) - Notebooks
- Google Colab
- Kaggle
🪷 Pathumma ASR Streaming 0.6B (TH)
Pathumma ASR Streaming 0.6B (TH) is a Thai–English streaming automatic speech recognition (ASR) model built for real-time, real-world audio. It handles:
- Low-latency streaming: configurable chunk sizes from 80 ms to 1.12 s, chosen at inference time with no retraining
- Thai–English code-switching: English words and phrases mixed into Thai speech
- Background noise and other difficult recording conditions
- Many domains, including technology, news, finance, science and law
The model is fine-tuned from nvidia/nemotron-speech-streaming-en-0.6b, a Cache-Aware FastConformer RNNT model (~600M parameters). The original English tokenizer was replaced with a new tokenizer that covers Thai and Thai–English mixed text.
It is suited to voice assistants, live captioning, call centers and other applications where low latency matters.
NVIDIA NeMo
To train, fine-tune, or run Python inference with this model, install NVIDIA NeMo after installing a recent PyTorch version.
apt-get update && apt-get install -y libsndfile1 ffmpeg
pip install Cython packaging
pip install -U "nemo_toolkit[asr]"
Quickstart
Load the model:
import torch
import nemo.collections.asr as nemo_asr
device = "cuda" if torch.cuda.is_available() else "cpu"
model_name = "nectec/Pathumma-asr-streaming-th-0.6b"
asr_model = nemo_asr.models.ASRModel.from_pretrained(model_name=model_name)
asr_model.to(device)
asr_model.eval()
# Choose the latency / accuracy trade-off (see "Streaming Configuration" below)
asr_model.encoder.set_default_att_context_size([70, 13]) # 1.12 s chunks
Run inference:
output = asr_model.transcribe(["audio_path.wav"])
print(output[0].text)
Streaming Inference
Use NeMo's cache-aware streaming script, speech_to_text_cache_aware_streaming_infer.py:
cd NeMo
python examples/asr/asr_cache_aware_streaming/speech_to_text_cache_aware_streaming_infer.py \
pretrained_name="nectec/Pathumma-asr-streaming-th-0.6b" \
dataset_manifest=<dataset_manifest> \
batch_size=<batch_size> \
att_context_size="[70,13]" \
output_path=<output_folder>
Streaming Configuration
Latency is set by att_context_size = [left_context, right_context], measured in 80 ms frames:
| att_context_size | Chunk size | Latency |
|---|---|---|
| [70, 0] | 1 frame | 0.08 s |
| [70, 1] | 2 frames | 0.16 s |
| [70, 6] | 7 frames | 0.56 s |
| [70, 13] | 14 frames | 1.12 s |
Chunk size = current frame + right context. Each chunk is processed without overlap. Smaller chunks give lower latency but slightly higher error rates.
Model Architecture
The model uses a Cache-Aware FastConformer encoder with 24 layers and an RNNT (Recurrent Neural Network Transducer) decoder, inherited from nvidia/nemotron-speech-streaming-en-0.6b. The encoder keeps caches for all self-attention and convolution layers, so each new audio chunk reuses earlier context instead of recomputing overlapping audio.
- Encoder: Cache-Aware FastConformer, 24 layers
- Decoder: RNNT
- Parameters: ~600M
- Tokenizer: the English tokenizer was replaced with a new Thai–English tokenizer: a SentencePiece tokenizer (BPE) initialized with 2,048 tokens.
- Decoder: the RNNT decoder and joint network were adapted to the new vocabulary.
- Fine-tuning: the whole model was fine-tuned on Thai and Thai–English speech (see Training).
- Output: the model transcribes Thai and English text.
Performance
Performance is measured with Character Error Rate (CER), the standard metric for Thai, which is written without spaces between words. References and predictions are normalised the same way before scoring: punctuation and spaces are removed and Latin letters are lower-cased. CER is computed at corpus level for each test set (total character errors ÷ total reference characters), and averages across test sets are plain means.
Each file is decoded in one pass with the att_context_size of each latency mode. Because the encoder uses chunked-limited attention, this gives the same encoder output as cache-aware streaming at that latency. All results use greedy decoding without an external language model, unless stated otherwise.
From 80 ms to 1.12 s, the average CER falls from 11.58% to 9.67% (16.5% relative). About 88% of that gain is already reached at 0.56 s, at half the latency.
CER (%) by latency
| Test set | 0.08 s | 0.16 s | 0.56 s | 1.12 s |
|---|---|---|---|---|
| Common Voice TH | 2.33 | 2.24 | 2.11 | 2.06 |
| FLEURS TH | 6.57 | 6.50 | 6.43 | 6.30 |
| GigaSpeech 2 | 16.32 | 15.12 | 13.57 | 13.26 |
| LOTUS Far-field (30 s) | 28.77 | 28.44 | 27.77 | 27.54 |
| CU Thai Dialects | 4.32 | 3.89 | 3.38 | 3.25 |
| LOTUS TRD (regional) | 6.00 | 5.84 | 5.49 | 5.38 |
| Thai Elderly Speech | 1.05 | 0.59 | 0.28 | 0.22 |
| Gowajee | 8.78 | 7.73 | 6.20 | 5.80 |
| TVSpeech (Typhoon) | 7.69 | 7.44 | 7.42 | 7.32 |
Word boosting
A list of keywords (names, brands, products, technical terms) can be passed to the decoder at inference time, with no retraining. The table shows results on TVSpeech (Typhoon) with its keyword list at a latency of 1.12 s (att_context_size = [70, 13]), using beam search (beam size 4, malsd_batch). Word Boost uses alpha 0.5 with NeMo's default arc weights.
- Beam: beam search without boosting
- Beam + WB: Word Boost
| Decoding | CER (%) | Keyword recall (%) | Keyword precision (%) | Keyword F1 (%) |
|---|---|---|---|---|
| Beam | 7.06 | 68.4 | 92.8 | 78.7 |
| Beam + WB | 7.07 | 75.0 | 89.5 | 81.6 |
Word Boost raises keyword recall by 6.6 points, from 68.4% to 75.0%, while precision dips only from 92.8% to 89.5% and CER changes by only 0.01 points. Recall is the share of keyword occurrences in the references that are transcribed correctly; precision is the share of keyword occurrences in the output that are correct. Matching is on whole words.
License
Use of this model is governed by the NVIDIA Open Model License Agreement. A copy of the agreement is included in this repository as LICENSE, and the required attribution is in the NOTICE file:
Licensed by NVIDIA Corporation under the NVIDIA Open Model License
This model is a Derivative Model of nvidia/nemotron-speech-streaming-en-0.6b. The changes made are listed under Model Architecture. Use of this model must also follow NVIDIA's Trustworthy AI terms.
This is not an official NVIDIA release and is not endorsed by NVIDIA. NVIDIA product names are used only to describe the origin of the model.
Citation
@misc{tipaksorn2026pathummaasrstreaming,
title = {{Pathumma ASR Streaming 0.6B (TH)}},
author = {Pattara Tipaksorn and Siwakorn Kaewwichai},
url = {https://huggingface.co/nectec/Pathumma-asr-streaming-th-0.6b},
publisher = {Hugging Face},
year = {2026}
}
- Downloads last month
- 30
Model tree for nectec/Pathumma-asr-streaming-th-0.6b
Base model
nvidia/nemotron-speech-streaming-en-0.6b