chompk's picture
Model card: open streaming baselines re-run as true chunked streams (Pathumma, OpenThai2.0/2.1, Typhoon Edge, Typhoon Nemotron, Nemotron 3.5)
adcbc71 verified
|
Raw History Blame Contribute Delete
13.4 kB
---
license: cc-by-sa-4.0
language: [th, en, zh]
pipeline_tag: automatic-speech-recognition
library_name: onnx
tags: [asr, speech-recognition, streaming, onnx, fastconformer, ctc, thai]
---
# VISAI OpenSpeech Streaming (preview)
The streaming version of [VISAI OpenSpeech](https://huggingface.co/VISAI-AI/visai-openspeech-offline-flash-preview):
a 337M-parameter Thai, English and Chinese model that transcribes live audio as it arrives. A chunked FastConformer
encoder with cached left context feeds a CTC head and a streaming attention decoder. It runs on CPU or GPU with the
[speech inference server](https://github.com/visai-ai/visai-openspeech-inference-server).
| Setup | Decoding | Look-ahead | Use it for |
|---|---|---|---|
| Flash streaming | CTC greedy | 0, 320 or 1,040 ms (per session) | lowest cost; never loops; word boost |
| Normal streaming | streaming decoder, greedy | 320 ms | best accuracy at 320 ms |
| | |
|---|---|
| Parameters | 337M (encoder 247M, CTC head 16M, decoder 74M) |
| Languages | Thai, English, Chinese |
| Input | 16 kHz mono 16-bit PCM over a WebSocket, or an uploaded file |
| Output | partial transcripts as text appears, then a final transcript |
| Left context | 70 frames (5.6 s) |
| Format | ONNX (fp32), ONNX Runtime 1.20 or newer |
## Quick start
```bash
git clone https://github.com/visai-ai/visai-openspeech-inference-server && cd visai-openspeech-inference-server
docker build -f Dockerfile.gpu -t speech-server:gpu . # or Dockerfile.cpu
export SPEECH_API_KEY="$(openssl rand -hex 24)" HF_TOKEN=hf_... # a token with access to this repository
docker run --rm --gpus all -p 127.0.0.1:8000:8000 -e SPEECH_API_KEY -e HF_TOKEN \
-e MODEL_REPO=VISAI-AI/visai-openspeech-streaming-flash-preview \
-e MODES=ctc-stream,dec-stream -v speech-models:/models speech-server:gpu
```
To serve this model next to the offline one, pass the offline repository in `MODEL_REPO` and this one in
`STREAM_MODEL_REPO`.
Open `GET /stream` as a WebSocket and send `{"type": "start", "key": "<key>", "mode": "ctc-stream", "lookahead": 4}`
(`"mode": "dec-stream"` for Normal streaming), then binary 16 kHz mono 16-bit PCM frames. The server sends `partial`
messages as text appears and a `final` message after `{"type": "stop"}`. `lookahead` is in 80 ms frames: 0, 4 (320 ms)
or 13 (1,040 ms) for `ctc-stream`. The streaming decoder runs at 4. Optional start fields for `ctc-stream` are `word_boost` (a JSON list
of up to 100 phrases), `boost` and `ctc_beam`. For `dec-stream`, they are `lang`, `itn` and `pnc` (JSON booleans). The demo page (`GET /demo`) streams from a microphone. See the server README for all options.
## Results
Greedy decoding, no language model. Public test sets plus, for Thai, a private online lecture set shared for evaluation. CER (%) for Thai. Normal streaming runs in live session
mode, as served (a new segment after a 640 ms pause or 30 s). Look-ahead is the encoder's algorithmic latency. Text
appears after its whole chunk (80, 400 or 1,120 ms) has arrived and been processed.
![Thai weighted CER, English average WER and Chinese average CER of streaming systems](assets/streaming_results.png)
*Thai: our setups and the commercial APIs ran as live streams in real time. PoopeyASR-50M ran as a stream through its own code, fed in 100 ms pieces as fast as it took them. The other systems labeled with a chunk size (Pathumma, OpenThai, Typhoon Nemotron, Typhoon ASR Edge Streaming and NVIDIA Nemotron 3.5 Streaming) ran chunk by chunk with their encoder cache carried from chunk to chunk, as a live stream runs. Typhoon ASR Realtime (marked "whole clip") was decoded on complete clips, which favors it. NVIDIA Nemotron 3.5 Streaming 0.6B is not tuned for Thai, and its bar is cut. English and Chinese: our results on the full test sets against the published results of other streaming models (chunk or delay in the label, see the tables below) and the Qwen-Audio 3.1 ASR Flash streaming service, which we ran as live streams in real time. Our labels give the look-ahead. The Chinese average leaves out FLEURS zh.*
**Thai** (CER %; Thai ASR leaderboard sets and weighted index; every model run through the same pipeline)
| Model | Look-ahead | Index | FLEURS | Isan | TV | GigaSpeech2 | Meeting close | Meeting far | Lecture |
|---|---|---|---|---|---|---|---|---|---|
| **Streaming, Normal (decoder)** | 320 ms | 18.65 | 7.63 | 6.53 | 6.11 | 11.10 | 20.07 | 45.90 | 29.56 |
| **Streaming, Flash (CTC)** | 1,040 ms | 17.84 | 7.91 | 7.43 | 6.51 | 11.88 | 20.00 | 46.87 | 24.90 |
| **Streaming, Flash (CTC)** | 320 ms | 18.80 | 8.77 | 8.56 | 7.09 | 13.04 | 21.08 | 48.68 | 25.61 |
| **Streaming, Flash (CTC)** | 0 ms | 22.63 | 10.86 | 13.22 | 9.33 | 16.51 | 27.22 | 55.55 | 28.02 |
| PoopeyASR-50M (streaming) | 640 ms chunk† | **16.98** | 7.81 | 6.80 | 5.73 | 10.58 | 16.83 | 45.84 | 25.85 |
| Pathumma ASR Streaming 0.6B | 1,040 ms‡ | 17.69 | 6.13 | 10.73 | 6.20 | 14.06 | 17.70 | 46.46 | 24.38 |
| OpenThai2.0 ASR Streaming | 480 ms‡ | 27.89 | 8.91 | 34.58 | 12.67 | 15.40 | 24.23 | 56.13 | 42.01 |
| OpenThai2.1 ASR Streaming | 480 ms‡ | 28.00 | 8.77 | 34.67 | 13.02 | 15.58 | 23.99 | 55.80 | 42.41 |
| Typhoon ASR Edge Streaming | 960 ms‡ | 28.45 | 9.94 | 21.75 | 9.91 | 14.04 | 29.06 | 76.17 | 41.63 |
| Typhoon ASR Streaming Nemotron 0.6B | 1,040 ms‡ | 29.40 | 11.19 | 33.38 | 10.33 | 16.17 | 30.68 | 72.65 | 38.67 |
| VISAI OpenSpeech offline, Normal | full | 16.04 | 6.66 | 4.84 | 4.77 | 9.64 | 20.52 | 44.16 | 21.90 |
| VISAI OpenSpeech offline, Flash (CTC) | full | 17.36 | 7.36 | 5.69 | 6.21 | 10.83 | 21.74 | 48.49 | 22.80 |
| Pathumma ASR RNNT 0.6B (offline) | full | 16.63 | 5.72 | 7.34 | 6.00 | 11.27 | 18.77 | 48.12 | 22.05 |
Index weights: online lecture .25, meeting close .20, TV .15, GigaSpeech2 .15, Isan .10, FLEURS .075, meeting far .075. Lecture: 8 university lectures of 10 to 15 min (Thai with English terms, Pinyo et al., JCSSE 2023), a private set shared for evaluation and scored on whole files with raw CER (only whitespace removed). Our training data
includes the FLEURS, Isan, GigaSpeech2 and LOTUSDIS (meeting) train splits (Isan test speakers may overlap).
†PoopeyASR-50M (Paxa Labs, a co-maintainer of the leaderboard) ran in its own streaming mode, fed in 100 ms pieces.
Its model card says a syllable's text is final 640 to 1,280 ms after its audio ends, which is not the same measure as our
encoder look-ahead. Per its model card it also trains on these four corpora. ‡Ran chunk by chunk with the model's encoder cache carried from chunk to chunk (NeMo cache-aware streaming), each clip
and each lecture file as one stream. The column gives the look-ahead inside each chunk. Chunks: 1.12 s for Pathumma ASR
Streaming 0.6B (NECTEC) and Typhoon ASR Streaming Nemotron 0.6B, 1.04 s for Typhoon ASR Edge Streaming (33M, with the
fixed feature statistics of Typhoon's own streaming engine) and 0.56 s for OpenThai2.0 and 2.1 ASR Streaming (iApp).
Per their model cards, Typhoon ASR Edge Streaming trains on the FLEURS, Isan and LOTUSDIS train splits, OpenThai2.0 on
LOTUSDIS and OpenThai2.1 on LOTUSDIS and GigaSpeech2. The Pathumma 0.6B model cards do not list their training data.
**English** (WER %; 7 sets, as in the offline card)
| Model | Params | Chunk or delay | Avg (7) | LS clean | LS other | AMI | Earnings22 | GigaSpeech | SPGI | VoxPopuli |
|---|---|---|---|---|---|---|---|---|---|---|
| **Streaming, Normal (decoder)** | 337M | 0.40 s chunk | 9.12 | 4.12 | 9.57 | 12.30 | 14.42 | 11.51 | 3.32 | 8.60 |
| **Streaming, Flash (CTC)** | 337M | 1.12 s chunk | 10.14 | 5.22 | 10.83 | 12.69 | 15.68 | 12.11 | 4.76 | 9.69 |
| **Streaming, Flash (CTC)** | 337M | 0.40 s chunk | 10.96 | 5.68 | 11.85 | 14.16 | 16.72 | 12.94 | 4.99 | 10.36 |
| **Streaming, Flash (CTC)** | 337M | 0.08 s chunk | 13.22 | 7.03 | 14.53 | 17.72 | 19.49 | 15.01 | 6.32 | 12.43 |
| VISAI OpenSpeech offline, Normal | 337M | full (offline) | 7.53 | 3.42 | 7.11 | 10.24 | 12.02 | 10.44 | 2.44 | 7.06 |
| VISAI OpenSpeech offline, Flash (CTC) | 337M | full (offline) | 9.36 | 4.70 | 9.04 | 11.15 | 14.96 | 11.40 | 4.97 | 9.27 |
| Nemotron Speech Streaming EN 0.6B | 0.6B | 1.12 s chunk | 7.42 | 2.32 | 4.84 | 11.73 | 12.52 | 9.66 | 2.97 | 7.91 |
| Nemotron Speech Streaming EN 0.6B | 0.6B | 0.16 s chunk | 8.23 | 2.56 | 5.57 | 14.71 | 13.01 | 10.34 | 3.25 | 8.18 |
| Kyutai STT 2.6B EN | 2.6B | 2.5 s delay | 6.83 | 1.70 | 4.32 | 12.17 | 10.99 | 9.81 | 2.03 | 6.79 |
| Voxtral Mini 4B Realtime | 4.4B | 0.48 s delay | n/r | 2.08 | 5.54 | n/r | 11.71 | 11.05 | 1.96 | 7.87 |
**Chinese** (CER %; the average leaves out FLEURS zh, which the baselines do not report)
| Model | Params | Chunk or delay | Avg (3) | AISHELL-1 | WenetSpeech net | WenetSpeech meeting | FLEURS zh |
|---|---|---|---|---|---|---|---|
| **Streaming, Normal (decoder)** | 337M | 0.40 s chunk | 9.19 | 5.46 | 13.10 | 9.00 | 12.05 |
| **Streaming, Flash (CTC)** | 337M | 1.12 s chunk | 8.90 | 5.45 | 12.60 | 8.64 | 11.87 |
| **Streaming, Flash (CTC)** | 337M | 0.40 s chunk | 9.73 | 5.74 | 14.00 | 9.45 | 12.34 |
| **Streaming, Flash (CTC)** | 337M | 0.08 s chunk | 12.75 | 8.12 | 18.33 | 11.81 | 15.49 |
| VISAI OpenSpeech offline, Normal | 337M | full (offline) | 7.78 | 4.90 | 11.33 | 7.10 | 10.31 |
| VISAI OpenSpeech offline, Flash (CTC) | 337M | full (offline) | 7.93 | 4.91 | 11.39 | 7.48 | 10.64 |
| Paraformer-large-online | 220M | n/s | 7.25 | 3.34 | 7.78 | 10.64 | n/r |
| WeNet U2++ Conformer, CTC prefix beam | n/s | 0.64 s chunk | n/r | 5.81 | 11.14 | 16.37 | n/r |
Our rows use the full test sets, live session mode for Normal streaming, the Whisper English normalizer, and
traditional-to-simplified conversion plus number normalization for Chinese. Our chunk lengths (0.08, 0.40 and 1.12 s)
are the 0, 320 and 1,040 ms look-ahead plus one 80 ms encoder frame. Baselines are published results, not run in our
pipeline: Nemotron (NVIDIA model card, March 2026 checkpoint), Kyutai (Open ASR Leaderboard), Voxtral (Mistral paper,
no AMI), Paraformer (FunASR benchmark page, chunk setting not stated) and WeNet (one-pass recipe results, 16-frame
chunks of 40 ms, with AISHELL-1 and WenetSpeech from separately trained models, so no average). Nemotron and Kyutai use
Whisper-style English normalization, and the other sources do not state theirs, so small gaps are not meaningful.
Several systems, ours included, train on the train splits of many of these corpora. Voxtral Realtime also reports
10.45% CER on FLEURS zh at 0.48 s. n/r: not reported. n/s: not stated.
**Speed** (one V100, fp32, one stream per process): Flash streaming at 1,040 ms RTF 0.018, at 320 ms 0.044, at 0 ms
0.19. Normal streaming at 320 ms is 0.062.
## Model
- Encoder: FastConformer, 18 layers, d=768, 12 heads, 8x subsampling (80 ms frames), SwiGLU, RoPE attention. Chunked attention
uses 70 cached frames of left context and a key-value and convolution cache per stream.
- Heads: CTC (21,254 labels) and a 6-layer Transformer decoder (d=768) that emits text for the audio received so far
and then a wait token until the next chunk.
- Tokenizer: SentencePiece unigram with byte fallback, 21,885 tokens.
- Trained from VISAI OpenSpeech: chunked fine-tune of the whole model over a mix of look-aheads, then a decoder-only
stage at 320 ms.
## Training data
The same data as VISAI OpenSpeech: 71.5k hours after deduplication and test-set decontamination (Thai 28.5k, English
31.4k, Chinese 11.6k), 54.3k from public corpora and 17.2k of in-house data. See the technical report for sources.
## Limitations
- Thai, English and Chinese only.
- Shorter look-ahead costs accuracy. At 0 ms, Thai CER is about 5 points worse than at 1,040 ms.
- The streaming decoder restarts at pauses and does not keep context across segments. It can repeat itself on hard
audio and does not take word boost yet. Flash streaming (CTC) never loops.
- Flash streaming handles about 12 minutes of audio per stream, and a live session ends after 15 minutes. Both end
with a `final` message.
- Far-field and overlapped speech remain hard (see the meeting columns).
- Prompt options: our public-set scores use normalized text, so they do not measure written or spoken numbers, dates
and units (`itn`) or punctuation and case (`pnc`) for the streaming decoder. We also have not measured its
test accuracy without a language tag (`lang` set to `auto` or omitted). Check them on your own audio first.
- Short clips and numbers: on clips under about 2 s, Flash streaming (CTC) can return empty text or characters of another
language. Thai numbers read one digit at a time (for example a year read "five four") can come out as a spoken
cardinal ("fifty-four"), because our training labels rendered every Thai integer as a cardinal. As a result, the
decoder's written-numbers option (`itn`) does not always behave as expected for numbers. We intend to fix both in
the next release.
- Preview release: review transcripts before high-stakes use.
## License
CC BY-SA 4.0.
## Citation
```bibtex
@misc{chaksangchaichot2026visaiopenspeech,
title = {VISAI OpenSpeech: An Encoder-Decoder ASR Model with Adjustable Inference Cost},
author = {Chaksangchaichot, Chompakorn},
year = {2026},
publisher = {VISAI AI},
url = {https://huggingface.co/VISAI-AI/visai-openspeech-offline-flash-preview}
}
```