加载中…
加载中…
Streaming Thai speech-to-text with 0.64B parameters. It writes Thai speech down while people are still talking, 80 to 1120 ms behind the voice, from one model with four latency settings. It is a Thai fine-tune of NVIDIA Nemotron 3.5 ASR Streaming 0.6B and part of OpenThai (formerly OpenThaiGPT). Developed by iApp, launched with AIEAT. This is version 2.1; version 2.0 stays available under the tag v2.0. 2.1 has the same architecture and file names, writes more English words in Latin letters with the th-mix prompt, and comes with a reference server that keeps up with more live streams. iApp's hosted OpenThai ASR Realtime service still runs version 2.0.
Built on NVIDIA Nemotron. The base model is NVIDIA's nvidia/nemotron-3.5-asr-streaming-0.6b, released under the OpenMDW License Agreement, version 1.1. That licence is included as LICENSE, and NVIDIA's original model card and sub-cards are kept unchanged in nvidia/.
| Architecture | Cache-aware streaming FastConformer encoder + RNN-Transducer decoder, prompt-conditioned (NeMo EncDecRNNTBPEModelWithPrompt) |
| Parameters | 640.4 million (0.64B): encoder 609.1 million (24 FastConformer layers, 1,024 wide), language-prompt layer 4.5 million, RNN-T decoder 16.2 million (2-layer LSTM of 640) and joint network 10.7 million |
| Accuracy, 560 ms | % of characters wrong: FLEURS 8.23, GigaSpeech2 15.42, TVSpeech 12.36, LOTUSDIS 20.56, Isan 34.64 (average 18.24; see Results) |
| Latency settings | 80, 320, 560 and 1120 ms (att_context_size [56,0], [56,3], [56,6], [56,13]), chosen at decode time |
| Language prompts | th-TH: everything in Thai script. th-mix: English words in Latin letters |
| Tokenizer | 14,988 pieces: NVIDIA's 13,087 multilingual pieces and 1,901 new Thai pieces |
| Training data | 12,373 hours of Thai speech and 961 hours of English (LibriSpeech) |
| Input | 16 kHz mono audio (128 log-mel bands); any length when cut at pauses, as the included server does |
| Files | Two .nemo files of 2.56 GB each, 32-bit weights (see Use). The ONNX export at iapp/OpenThai2.0-ASR-Streaming-ONNX is of version 2.0 |
| Speed | One NVIDIA H100: files about 257× faster than real time; at 560 ms the reference server keeps up with about 24 live streams per process, about 48 with two processes. A server CPU limited to 8 threads: files about 4× real time, a live stream keeps up at 560 and 320 ms. Apple M3 Max with 1 thread: files about 3× real time, a live stream keeps up at 560 and 320 ms |
| Memory | About 2.6 GB for the weights; about 6.5 GB of RAM in all on a CPU |
| Licence | OpenMDW-1.1 |
| 2.0 | 2.1 | |
|---|---|---|
English words written in Latin letters with th-mix (TVSpeech, 560 ms: recall / precision / F1) |
13.7% / 22.6% / 17.0 | 22.5% / 28.1% / 25.0 (Typhoon: 16.1% / 30.6% / 21.1) |
% of characters wrong with th-TH, 560 ms: FLEURS / GigaSpeech2 / TVSpeech / LOTUSDIS / Isan |
8.47 / 15.35 / 12.41 / 20.77 / 34.90 | 8.23 / 15.42 / 12.36 / 20.56 / 34.64 |
| live streams one H100 keeps up with at 560 ms (reference server) | 8 | 24 per process, 48 with CHINDA_WORKERS=2 |
CHINDA_DEVICE=mps). Checked on one NVIDIA H100 and on Apple GPU and CPU: the same text as the 15 Nov version on 60 of 60 FLEURS clips, and live streams are as fast as before on the H100; transcribe() in your own code is documented below.th-mix clips that contain English words. With th-TH the output is still all Thai script.CHINDA_WORKERS, not copies of the model per process. Earlier we wrote "about 20 live streams per H100": that was GPU time per step, not what the 2.0 server delivered (8), as an independent test found.--revision v2.0. The faster live server is the serve/ folder.We compared it with Typhoon ASR Streaming 0.6B, the other open Thai model built on the same NVIDIA base. We decoded both ourselves, on public test sets, with the same script and settings.
th-mix prompt this model writes more of TVSpeech's English words in Latin letters than Typhoon does (F1 25.0 against 21.1 at 560 ms).560 ms (att_context_size [56,6]), character error rate in %, lower is better:
| test set | size | OpenThai2.0-ASR-Streaming 2.1 | Typhoon ASR Streaming 0.6B | Typhoon + its 4-gram LM | ours − Typhoon, 95% interval |
|---|---|---|---|---|---|
| FLEURS test, read speech | 1,021 clips | 8.23 | 11.28 | 11.73 | −3.05 [−3.38, −2.71], ours lower |
| GigaSpeech2 test, YouTube | 8,823 clips, 32 recordings | 15.42 | 16.33 | 16.62 | −0.90 [−1.21, −0.54], ours lower |
| TVSpeech, TV and YouTube talk | 570 clips, 18 videos | 12.36 | 10.84 | 11.05 | +1.52 [+0.86, +2.47], Typhoon lower |
| LOTUSDIS meetings, conference microphone ¹ | 5,516 turns, 11 meetings | 20.56 | 28.91 | 29.02 | −8.35 [−9.04, −7.74], ours lower |
| Isan dialect | 500 clips | 34.64 | 34.15 | 35.79 | +0.49 [−0.49, +1.42], tie |
1120 ms (att_context_size [56,13]), character error rate in %, lower is better:
| test set | size | OpenThai2.0-ASR-Streaming 2.1 | Typhoon ASR Streaming 0.6B | Typhoon + its 4-gram LM | ours − Typhoon, 95% interval |
|---|---|---|---|---|---|
| FLEURS test, read speech | 1,021 clips | 8.24 | 11.32 | 11.64 | −3.09 [−3.41, −2.77], ours lower |
| GigaSpeech2 test, YouTube | 8,823 clips, 32 recordings | 15.26 | 16.18 | 16.44 | −0.93 [−1.29, −0.53], ours lower |
| TVSpeech, TV and YouTube talk | 570 clips, 18 videos | 12.16 | 10.70 | 11.18 | +1.46 [+0.75, +2.56], Typhoon lower |
| LOTUSDIS meetings, conference microphone ¹ | 5,516 turns, 11 meetings | 20.15 | 28.23 | 28.64 | −8.08 [−8.79, −7.35], ours lower |
| Isan dialect | 500 clips | 34.41 | 33.73 | 35.68 | +0.68 [−0.27, +1.60], tie |
Bold: lower than the other model in that row with 95% confidence (paired bootstrap, see below).
Whole recordings, 560 ms. Each file joins every clip of one video or recording, in order, with one second of silence between clips. One stream decodes the file in one pass, as NeMo's script does; cut at pauses decodes it the way serve/ does, in pieces cut where nobody speaks for 0.7 s, each decoded on its own (both models through the same code, Typhoon at its released settings).
| test set | size | one stream: ours | one stream: Typhoon | ours − Typhoon, 95% interval | cut at pauses: ours | cut at pauses: Typhoon | ours − Typhoon, 95% interval |
|---|---|---|---|---|---|---|---|
| TVSpeech, whole videos (0.5–47 min) | 18 files | 22.76 | 11.07 | +11.69 [+6.87, +16.20], Typhoon lower | 12.73 | 10.84 | +1.89 [+1.25, +2.81], Typhoon lower |
| GigaSpeech2 test, whole recordings (5–87 min) ² | 31 files | 23.35 | 30.07 | −6.73 [−11.49, −2.74], ours lower | 13.45 | 14.42 | −0.96 [−1.41, −0.51], ours lower |
Decoded as one stream, this model loses words after a pause of near-silence: the longer and quieter the pause, the more it drops (see Limits). Cut at pauses, it comes back near its clip-by-clip error on TVSpeech (12.73 whole against 12.36 clip by clip) and below it on GigaSpeech2 (13.45 against 15.42).
By latency, character error rate in %, ours / Typhoon (as released):
| test set | 80 ms | 320 ms | 560 ms | 1120 ms |
|---|---|---|---|---|
| FLEURS test, read speech | 8.73 / 11.78 | 8.39 / 11.67 | 8.23 / 11.28 | 8.24 / 11.32 |
| GigaSpeech2 test, YouTube | 16.70 / 17.75 | 15.61 / 16.64 | 15.42 / 16.33 | 15.26 / 16.18 |
| TVSpeech, TV and YouTube talk | 12.97 / 11.44 | 12.48 / 10.84 | 12.36 / 10.84 | 12.16 / 10.70 |
| LOTUSDIS meetings, conference microphone | 26.46 / 34.35 | 21.55 / 29.49 | 20.56 / 28.91 | 20.15 / 28.23 |
| Isan dialect | 35.41 / 35.37 | 34.87 / 34.65 | 34.64 / 34.15 | 34.41 / 33.73 |
Typhoon with a tuned blank offset. Our released file stores a blank offset of −1.0, chosen on a development set. Typhoon's best offset on the same development set is −2.0. With it, at 560 ms:
| test set | ours | Typhoon, offset −2.0 | ours − Typhoon, 95% interval |
|---|---|---|---|
| FLEURS test, read speech | 8.23 | 11.63 | −3.40 [−3.74, −3.06], ours lower |
| GigaSpeech2 test, YouTube | 15.42 | 15.26 | +0.17 [−0.30, +0.65], tie |
| TVSpeech, TV and YouTube talk | 12.36 | 10.68 | +1.68 [+1.02, +2.64], Typhoon lower |
| LOTUSDIS meetings, conference microphone | 20.56 | 26.71 | −6.15 [−6.65, −5.70], ours lower |
| Isan dialect | 34.64 | 33.87 | +0.77 [−0.12, +1.73], tie |
English words on TVSpeech at 560 ms: the share of the reference's English words written in Latin letters (recall), the share of written English words that are right (precision), and their F1; exact match, ignoring case.
| recall | precision | F1 | |
|---|---|---|---|
ours, th-mix |
22.5 | 28.1 | 25.0 |
ours, th-TH |
0.5 | 33.3 | 0.9 |
| Typhoon | 16.1 | 30.6 | 21.1 |
| Typhoon + 4-gram | 18.9 | 29.0 | 22.9 |
By the method of the public Thai ASR Leaderboard (pilot 2026.10: spoken-form normalisation, six weighted groups), 1120 ms. This is our own measurement, not an entry on that board.
| FLEURS | Isan | TVSpeech | GigaSpeech2 | close mics | far mics | weighted | |
|---|---|---|---|---|---|---|---|
| OpenThai2.0-ASR-Streaming 2.1 | 8.16 | 33.66 | 11.93 | 15.11 | 22.15 | 54.74 | 22.02 |
| Typhoon ASR Streaming 0.6B | 11.20 | 33.30 | 10.59 | 16.18 | 30.72 | 72.11 | 26.25 |
| Typhoon + 4-gram | 11.54 | 35.26 | 11.07 | 16.44 | 31.07 | 73.05 | 26.91 |
How we measured:
speech_to_text_cache_aware_streaming_infer.py), greedy, max_symbols_per_step=2, prompt th-TH (with NeMo's default of 10 instead, Typhoon's error moves by at most 0.06 points on FLEURS, TVSpeech and GigaSpeech2). Typhoon is typhoon-ai/typhoon-asr-streaming-nemotron-0.6b as released, and with its paired 4-gram (...-0.6b-ngram, weight 0.5, as its card says).There are two files. Use the first unless you run the reference server.
| file | for |
|---|---|
openthai2.0-asr-streaming_bias-1.0.nemo |
NeMo's streaming script and your own code. The blank offset −1.0 that every number above uses is stored in the file. |
openthai2.0-asr-streaming_raw.nemo |
The reference server in serve/, which sets the blank offset per mode itself. |
Both need NVIDIA NeMo (Speech) with cache-aware streaming and EncDecRNNTBPEModelWithPrompt. We tested NeMo Speech at commit cf724ac, PyTorch 2.13 and Python 3.12:
uv venv asr --python 3.12 && source asr/bin/activate
uv pip install torch==2.13.0 --index-url https://download.pytorch.org/whl/cu130 # or the CPU wheel
uv pip install Cython packaging
uv pip install --extra-index-url https://download.pytorch.org/whl/cu130 --index-strategy unsafe-best-match \
"nemo-toolkit[asr] @ git+https://github.com/NVIDIA-NeMo/Speech.git@cf724ac337d1ebc7d0dda1e23fb80916f52927a5"
hf download iapp/OpenThai2.0-ASR-Streaming --local-dir OpenThai2.0-ASR-Streaming
Only transcribing from your own Python code? The PyPI release is simpler to install, uv pip install "nemo-toolkit[asr]==3.0.0" (Python 3.12), and gave the same text as the pinned commit on all 60 FLEURS clips we compared with the snippet below. The reference server and speaker labels are tested only with the pinned commit. On an Intel Mac, PyTorch 2.13 has no wheels; use the ONNX export.
This is exactly how every benchmark number on this page was produced. Audio must be 16 kHz mono.
echo '{"audio_filepath": "a.wav", "duration": 8.8, "text": ""}' > in.jsonl # one line per file
python <NeMo Speech>/examples/asr/asr_cache_aware_streaming/speech_to_text_cache_aware_streaming_infer.py \
model_path=OpenThai2.0-ASR-Streaming/openthai2.0-asr-streaming_bias-1.0.nemo \
dataset_manifest=in.jsonl output_path=out batch_size=32 \
att_context_size="[56,6]" target_lang=th-TH strip_lang_tags=true \
rnnt_decoding.greedy.max_symbols_per_step=2
# result: out/streaming_out_*.json, one line per file, field "pred_text"
att_context_size: [56,0] 80 ms, [56,3] 320 ms, [56,6] 560 ms, [56,13] 1120 ms.target_lang: th-TH, or th-mix to write English words in Latin letters.max_symbols_per_step=2 stops rare repetition loops at no cost in accuracy.dataset_manifest=; with audio_file= this NeMo commit prints the text and then stops with an error.model.transcribe() yourself: pass audio as numpy arrays together with target_lang, as in the next section. Given file paths, this commit's data loader ignores target_lang and stops with Unknown prompt key: 'None'.import soundfile as sf
from omegaconf import open_dict
from nemo.collections.asr.models import ASRModel
asr = ASRModel.restore_from("OpenThai2.0-ASR-Streaming/openthai2.0-asr-streaming_bias-1.0.nemo").eval()
# or ASRModel.from_pretrained("iapp/OpenThai2.0-ASR-Streaming"), which downloads this file
asr.encoder.set_default_att_context_size([56, 6]) # 560 ms look-ahead; [56, 13] = 1120 ms
with open_dict(asr.cfg.decoding): asr.cfg.decoding.greedy.max_symbols = 2
asr.change_decoding_strategy(asr.cfg.decoding)
x, rate = sf.read("a.wav", dtype="float32") # 16 kHz mono, as a numpy array
text = asr.transcribe([x], target_lang="th-TH", batch_size=1)[0].text
print(text.replace("\u0e4d\u0e32", "\u0e33")) # ำ in one piece
target_lang. With file paths, NeMo's loader drops the language and stops with Unknown prompt key: 'None'; without target_lang the output is empty.ASRModel.from_pretrained downloads the file OpenThai2.0-ASR-Streaming.nemo (the same file as openthai2.0-asr-streaming_bias-1.0.nemo) from main, which holds version 2.1.th-TH (or th-mix). Left empty, they fall back to automatic detection, which can write Chinese or Japanese characters.serve/ is a small FastAPI service around the model: POST /v1/transcribe for files and WS /v1/live for live audio, with three modes and optional speaker labels. It runs on a GPU or a CPU. Both cut long audio at pauses, the way iApp's hosted service does. A file longer than 30 seconds is cut where nobody speaks for 0.7 s and each piece is decoded on its own; the response lists them in segments. Files with speaker labels (mode=meeting) are cut the same way when the recording has at least 1.2 near-silent gaps per minute: on 12 TVSpeech recordings joined with 1 s of digital silence, which were not used to choose that number, 23.8% of characters were wrong as one stream and 12.4% cut (with speaker labels on). A room with background hum has few such gaps (0.1 to 0.8 per minute in 21 LOTUSDIS meetings) and stays one stream: cutting does not help there (10 validation meetings: 18.9% as one stream, 19.2% cut, a tie; 11 test meetings: 19.6% and 20.0%). split=on and split=off force either. Real online meetings were not tested. In noise the pause detector keeps everything and cuts only at quiet moments. A live stream sends a final text each time the speaker pauses.
uv pip install fastapi uvicorn python-multipart websockets
cd OpenThai2.0-ASR-Streaming/serve
CHINDA_DEVICE=cuda CHINDA_PRELOAD=1 python -m uvicorn app:app --port 18081 # CPU: leave out CHINDA_DEVICE
curl -F file=@a.wav -F mode=standard http://127.0.0.1:18081/v1/transcribe
mode |
for | what it does |
|---|---|---|
standard (default) |
read speech, news, lectures, dictation | blank offset −1.0; clips under 2 s decoded again at −2.5; empty output decoded again at −4.0 |
conversation |
YouTube, social media, casual talk (short clips) | blank offset −2.0; empty output decoded again at −4.0; use standard for long recordings, where conversation settings add errors |
meeting |
several people in a room | blank offset −1.0, and speaker labels from nvidia/Nemotron-3-Diarization (downloaded on first use) |
Other fields: lang (th-TH or th-mix) and latency_ms (80, 320, 560 or 1120). Each mode's settings were chosen on development data and then measured once on test data.
Live stream over WebSocket (audio as 16 kHz mono 16-bit PCM):
import json, soundfile as sf
from websockets.sync.client import connect
x = sf.read("a.wav", dtype="float32")[0] # 16 kHz mono
pcm = (x.clip(-1, 1) * 32767).astype("<i2").tobytes() # 16-bit PCM, as a microphone gives it
with connect("ws://127.0.0.1:18081/v1/live") as ws:
ws.send(json.dumps({"mode": "standard", "lang": "th-TH", "latency_ms": 560})); ws.recv()
for i in range(0, len(pcm), 16000): # 0.5 s chunks
ws.send(pcm[i:i + 16000])
ws.send("end")
while (m := json.loads(ws.recv()))["type"] != "done":
if m["type"] == "partial":
print("partial:", m["text"]) # the sentence so far
elif m["type"] == "final":
print("final:", m["display_text"]) # one per pause
The same code without a server. It imports the server's modules, so save the script in serve/, or run it from elsewhere with PYTHONPATH=OpenThai2.0-ASR-Streaming/serve; otherwise Python stops with No module named 'chinda_asr':
from chinda_asr import ChindaASR, MODES, load_audio
from chinda_realtime import transcribe_long
asr = ChindaASR(device="cuda") # or "cpu"
print(asr.transcribe("a.wav", policy=MODES["conversation"], lang="th-TH")["display_text"]) # a clip
print(transcribe_long(asr, load_audio("talk.wav"), policy=MODES["standard"])["display_text"]) # a long recording
All fields, environment variables and error codes: serve/README.md. The service has no authentication; keep it on localhost or behind your own gateway.
Speed. On one NVIDIA H100, files decode about 257 times faster than real time, and at 560 ms the server keeps up with about 24 live streams per process (CHINDA_WORKERS=2: about 48; finals arrive within 1.5 s for 90% of sentences, TVSpeech audio sent at real time). Each process holds its own copy of the model, about 6.6 GB of GPU memory. On a server CPU limited to 8 threads, files decode about 4 times faster than real time and live streams keep up at 560 and 320 ms, with about 6.5 GB of memory.
On a Mac (Apple silicon), use one CPU thread. There, every extra thread makes decoding slower: on an M3 Max a 7.6-second clip takes 2.3 s with 1 thread, 6.4 s with 4 and 20.7 s with 16. The reference server uses 1 thread on macOS unless CHINDA_NUM_THREADS says otherwise. For NeMo's streaming script, run it with OMP_NUM_THREADS=1; in your own Python code, call torch.set_num_threads(1). With 1 thread on the M3 Max, live streams keep up at 560 and 320 ms; at 80 ms it decodes at only about real time, with no margin, and memory peaks at about 6 GB. On the Apple GPU, set CHINDA_DEVICE=mps: on an M3 Max the text was identical to the CPU's on 60 FLEURS clips, files decoded about 40 times faster than real time (one CPU thread: 6 times), and a live stream kept up at every latency (80 ms: 3.0 times real time; 320, 560 and 1120 ms: 12 to 19 times).
\u0e4d\u0e32 with \u0e33. The published scores treat both forms as equal.th-mix, English words a speaker says are written in Latin letters (online, GDP); with th-TH they are written in Thai script.Data. 12,373 hours of Thai speech and 961 hours of English.
| source | hours | transcripts |
|---|---|---|
| GigaSpeech2, Thai training split, YouTube | 10,400 | automatic (GigaSpeech2's own) |
| Thai Dialect Corpus (Porjai), Central Thai only | 695 | human |
| iApp's own recordings: podcasts, talk shows, live streams and voice-actor recordings | 446 | human |
| Common Voice, Thai | 408 | human |
| WanJuan-SiLu, Thai | 201 | human |
| THAI SER (VISTEC-depa) | 86 | human |
| LOTUSDIS, training split | 64 | human |
| PyThaiNLP Som TTS dataset | 21 | human |
| NECTEC LOTUS, TSync-1 and TSync-2 | 17 | human |
| Thai Elderly Speech | 14 | human |
| Gowajee | 14 | human |
| FLEURS, Thai training and development splits | 8 | human |
| LibriSpeech, English | 961 | human |
th-mix prompt was trained on the same Thai audio, with Thai-script spellings of English words changed to Latin letters by a language model whose every edit was checked character by character against the original transcript.Recipe.
th-mix prompt;th-mix hours contain English words in Latin letters, up from 11.4% (version 2.1).th-TH, English words come out in Thai script. With th-mix, 22.5% of the English words in TVSpeech's transcripts come out in Latin letters at 560 ms (Typhoon 16.1%); the rest stay in Thai script, and names are often misspelt.standard mode decodes clips under 2 s a second time with a lower blank offset, which fixes most of them. With another decoder (NeMo's script, ONNX), decode an empty result again with a lower blank offset (the server uses −4.0).serve/ come from a separate diarization model and can be wrong on short turns.Released under the OpenMDW License Agreement, version 1.1 (LICENSE), the licence of its base model. OpenThai2.0-ASR-Streaming 2.1 is a Thai fine-tune of NVIDIA Nemotron 3.5 ASR Streaming 0.6B. NVIDIA's original model card and its bias, explainability, privacy and safety sub-cards are in nvidia/, unchanged.
serve/chinda_asr.py adapts the decode loop of NVIDIA NeMo's speech_to_text_cache_aware_streaming_infer.py (Apache-2.0).serve/ use nvidia/Nemotron-3-Diarization (OpenMDW-1.1), which is downloaded from Hugging Face, not redistributed here.Developed by iApp, launched with AIEAT. Trained and evaluated on NVIDIA H100 GPUs provided by Siam AI Corporation.
@misc{iapp2026openthaiasrstreaming21,
title = {OpenThai2.0-ASR-Streaming 2.1: streaming Thai speech recognition},
author = {{iApp Technology}},
year = {2026},
url = {https://huggingface.co/iapp/OpenThai2.0-ASR-Streaming}
}