|
Download README.md from VISAI-AI/visai-openspeech-offline-flash-preview: direct link, hf CLI and curl.
- Browser
- Download file 9.41 kB
-
https://huggingface.co/VISAI-AI/visai-openspeech-offline-flash-preview/resolve/main/README.md
- Command line
-
hf download hf://VISAI-AI/visai-openspeech-offline-flash-preview/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/VISAI-AI/visai-openspeech-offline-flash-preview/resolve/main/README.md
9.41 kB
| license: cc-by-sa-4.0 | |
| language: [th, en, zh] | |
| pipeline_tag: automatic-speech-recognition | |
| library_name: onnx | |
| tags: [asr, speech-recognition, onnx, fastconformer, ctc, thai] | |
| # VISAI OpenSpeech (offline, preview) | |
| A 337M-parameter Thai, English and Chinese speech recognition model: a FastConformer encoder with a CTC head and an | |
| attention decoder, exported to ONNX (fp32). It runs on CPU or GPU with the | |
| [speech inference server](https://github.com/visai-ai/visai-openspeech-inference-server) in three setups: | |
| | Setup | Decoding | Use it for | | |
| |---|---|---| | |
| | Flash | CTC greedy | lowest cost; never loops | | |
| | Normal | attention decoder, greedy | best accuracy per cost | | |
| | Performance | attention decoder, beam 4 | best accuracy | | |
| | | | | |
| |---|---| | |
| | Parameters | 337M (encoder 247M, CTC head 16M, decoder 74M) | | |
| | Languages | Thai, English, Chinese (automatic, or set per request in the decoder setups) | | |
| | Input | 16 kHz audio of any length (cut at pauses into windows of up to 30 s) | | |
| | Output | text; token timestamps (all setups); segment timestamps, written numbers and punctuation (decoder setups) | | |
| | Format | ONNX (fp32), ONNX Runtime 1.20 or newer | | |
| | Streaming | [VISAI OpenSpeech Streaming](https://huggingface.co/VISAI-AI/visai-openspeech-streaming-flash-preview) (gated preview) | | |
| ## 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-offline-flash-preview -e DECODES=greedy,beam \ | |
| -e MODES=decoder,ctc -v speech-models:/models speech-server:gpu | |
| curl -H "Authorization: Bearer $SPEECH_API_KEY" --data-binary @audio.wav \ | |
| "http://127.0.0.1:8000/v1/transcribe?lang=th&mode=decoder&decode=beam" | |
| ``` | |
| `mode=ctc` is Flash, `mode=decoder` is Normal and `mode=decoder&decode=beam` is Performance. Word boost works in all | |
| three setups. Repeat `word_boost=` once per phrase (for example `word_boost=Acme%20Corp`) or pass one URL-encoded JSON | |
| list. See the server README for all options. | |
| ## Results | |
| Our rows: greedy decoding (Performance: beam 4), no language model, the released fp32 ONNX export, public test sets | |
| plus, for Thai, a private online lecture set shared for evaluation. CER (%) for Thai and Chinese, WER (%) for English. Lower is better. | |
|  | |
| *All Thai systems were run through one pipeline. English and Chinese baselines are published results, except Chinda ASR Pro v2 and Qwen-Audio 3.1 ASR Flash (commercial APIs), which we ran through our pipeline. The Chinese average leaves out FLEURS, which the published baselines do not report.* | |
| **Thai** (CER %; Thai ASR leaderboard sets and weighted index; every model run through the same pipeline) | |
| | Model | Params | Index | FLEURS | Isan | TV | GigaSpeech2 | Meeting close | Meeting far | Lecture | | |
| |---|---|---|---|---|---|---|---|---|---| | |
| | **VISAI OpenSpeech, Performance** | 337M | **15.61** | 6.62 | 4.79 | 4.67 | 9.51 | 19.88 | 43.14 | 21.17 | | |
| | **VISAI OpenSpeech, Normal** | 337M | 16.04 | 6.66 | 4.84 | 4.77 | 9.64 | 20.52 | 44.16 | 21.90 | | |
| | **VISAI OpenSpeech, Flash (CTC)** | 337M | 17.36 | 7.36 | 5.69 | 6.21 | 10.83 | 21.74 | 48.49 | 22.80 | | |
| | PoopeyASR-50M | 50.5M | 16.19 | 7.27 | 5.49 | 5.28 | 10.29 | 16.58 | 45.45 | 24.13 | | |
| | Pathumma ASR RNNT 0.6B | 0.6B | 16.63 | 5.72 | 7.34 | 6.00 | 11.27 | 18.77 | 48.12 | 22.05 | | |
| | Pathumma STT FastConformer | 114M | 18.91 | 6.13 | 7.97 | 7.73 | 13.04 | 21.97 | 53.63 | 24.49 | | |
| | Typhoon Qwen-ASR 1.7B | 1.7B | 22.30 | 6.32 | 20.48 | 5.99 | 11.41 | 24.30 | 61.85 | 30.69 | | |
| | Typhoon Whisper turbo | 809M | 23.45 | 7.90 | 20.23 | 6.38 | 12.12 | 25.19 | 66.50 | 32.14 | | |
| | Lomasub-open | 166M | 23.53 | 8.66 | 18.74 | 5.50 | 11.62 | 25.72 | 76.03 | 30.38 | | |
| | Typhoon Whisper large-v3 | 1.55B | 24.78 | 7.43 | 12.21 | 5.72 | 12.08 | 27.56 | 84.50 | 33.94 | | |
| | Qwen3-ASR 1.7B | 1.7B | 25.88 | 6.55 | 27.44 | 10.07 | 11.96 | 26.33 | 73.20 | 34.34 | | |
| | Typhoon ASR Edge | 33M | 26.19 | 8.55 | 17.41 | 8.26 | 13.39 | 30.16 | 73.77 | 35.98 | | |
| | Thonburian Whisper large-v3 | 1.55B | 27.15 | 7.05 | 27.49 | 12.32 | 16.30 | 29.53 | 77.22 | 31.54 | | |
| 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) also trains on these four corpora, and Typhoon ASR Edge | |
| trains on the FLEURS, Isan and LOTUSDIS train splits, per their model cards. The Pathumma ASR RNNT 0.6B model card does not list its | |
| training data. | |
| **English** (WER %; baselines from the archived Open ASR Leaderboard, 2025-12-17; 7 sets, TED-LIUM excluded as its references are no longer distributed) | |
| | Model | Params | Avg (7) | LS clean | LS other | AMI | Earnings22 | GigaSpeech | SPGI | VoxPopuli | | |
| |---|---|---|---|---|---|---|---|---|---| | |
| | **VISAI OpenSpeech, Performance** | 337M | 7.47 | 3.34 | 6.87 | 10.21 | 12.07 | 10.45 | 2.42 | 6.95 | | |
| | **VISAI OpenSpeech, Normal** | 337M | 7.53 | 3.42 | 7.11 | 10.24 | 12.02 | 10.44 | 2.44 | 7.06 | | |
| | **VISAI OpenSpeech, Flash (CTC)** | 337M | 9.36 | 4.70 | 9.04 | 11.15 | 14.96 | 11.40 | 4.97 | 9.27 | | |
| | parakeet-tdt-0.6b-v2 | 0.6B | 6.44 | 1.69 | 3.19 | 11.16 | 11.15 | 9.74 | 2.17 | 5.95 | | |
| | canary-1b-flash | 1B | 6.81 | 1.48 | 2.87 | 13.11 | 12.77 | 9.85 | 1.95 | 5.63 | | |
| | whisper-large-v3 | 1.55B | 7.95 | 2.01 | 3.91 | 15.95 | 11.29 | 10.02 | 2.94 | 9.54 | | |
| | whisper-large-v3-turbo | 809M | 8.44 | 2.10 | 4.24 | 16.13 | 11.63 | 10.14 | 2.97 | 11.87 | | |
| **Chinese** (CER %; baselines from the SenseVoice report, arXiv:2407.04051) | |
| | Model | Params | AISHELL-1 | WenetSpeech net | WenetSpeech meeting | FLEURS zh | | |
| |---|---|---|---|---|---| | |
| | **VISAI OpenSpeech, Performance** | 337M | 4.62 | 10.61 | 6.83 | 10.01 | | |
| | **VISAI OpenSpeech, Normal** | 337M | 4.90 | 11.33 | 7.10 | 10.31 | | |
| | **VISAI OpenSpeech, Flash (CTC)** | 337M | 4.91 | 11.39 | 7.48 | 10.64 | | |
| | Paraformer-zh | 220M | 1.95 | 6.74 | 6.97 | n/r | | |
| | SenseVoice-Small | 234M | 2.96 | 7.84 | 7.44 | n/r | | |
| | whisper-large-v3 | 1.55B | 5.14 | 10.48 | 18.87 | n/r | | |
| Our training data includes the AMI, GigaSpeech, SPGISpeech, VoxPopuli, AISHELL-1, WenetSpeech and FLEURS train splits. | |
| Recordings that overlap any test set were removed. Chinese CER uses traditional-to-simplified conversion and number | |
| normalization, and English uses the Whisper normalizer. Normalizers differ between sources, so compare with published | |
| baselines only roughly. | |
| **Speed** (one V100, fp32 graphs, offline batch decoding of the Thai test sets): real-time factor 0.0033 (Flash), 0.0047 | |
| (Normal), 0.0060 (Performance). | |
| ## Model | |
| - Encoder: FastConformer, 18 layers, d=768, 12 heads, 8x subsampling (80 ms frames), SwiGLU, RoPE attention. | |
| - Heads: CTC (21,254 labels) and a 6-layer Transformer decoder (d=768) with Whisper-style prompt tokens | |
| (language, written numbers, punctuation, timestamps). | |
| - Tokenizer: SentencePiece unigram with byte fallback, 21,885 tokens. | |
| - Front end: 80-bin log-mel, 25 ms window, 10 ms hop. | |
| ## Training data | |
| 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. | |
| - The attention decoder can repeat itself on hard audio (far-field meetings, noise, music). Output is capped at 448 | |
| tokens per 30 s window. Flash (CTC) never loops. | |
| - Far-field and overlapped speech remain hard (see the meeting columns). | |
| - Prompt options and timestamps: 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`). We also have not measured segment or token | |
| timestamp accuracy, or decoder test accuracy without a language tag (`lang=auto` or omitted). Check them on | |
| your own audio first. | |
| - Short clips and numbers: on clips under about 2 s, Flash (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} | |
| } | |
| ``` | |