Omnilingual CTC-300M forced aligner (Apache-2.0)
Word-level forced alignment for multilingual speech, loadable as-is by ctc-forced-aligner and WhisperX.
- Weights: Meta's Omnilingual ASR
omniASR_CTC_300M_v2(the v2 checkpoint offacebook/omniASR-CTC-300M; Apache-2.0, 1,600+ training languages) as transformersWav2Vec2ForCTC. Weights unchanged: logits match fairseq2 to about 1e-4, greedy transcripts are identical. - Vocabulary: renamed so both libraries find the right CTC blank and word separator (existing conversions shift timestamps by seconds).
- Replaces
MahmoudAshraf/mms-300m-1130-forced-aligner(CC-BY-NC-4.0) where a commercial license is needed; serves as WhisperX--align_modelfor languages without a default aligner. - Demo: Cis-Labs/forced-aligner, client-side via ONNX.
Quick start
ctc-forced-aligner (native script; see --romanize under limitations)
ctc-forced-aligner --audio_path audio.wav --text_path transcript.txt --language eng \
--alignment_model Cis-Labs/omniasr-ctc-300m-forced-aligner
from ctc_forced_aligner import load_alignment_model
model, tokenizer = load_alignment_model("cpu", model_path="Cis-Labs/omniasr-ctc-300m-forced-aligner")
# then follow the ctc-forced-aligner README (generate_emissions -> preprocess_text -> get_alignments ...)
WhisperX
whisperx audio.wav --align_model Cis-Labs/omniasr-ctc-300m-forced-aligner
import whisperx
align_model, metadata = whisperx.load_align_model(
language_code="en", device="cpu", model_name="Cis-Labs/omniasr-ctc-300m-forced-aligner")
aligned = whisperx.align(result["segments"], align_model, metadata, audio, "cpu")
ONNX and in-browser use
onnx/model.onnx (fp32, 1.3 GB) and onnx/model_quantized.onnx (int8, 367 MB) run with ONNX Runtime and
transformers.js; input is raw, unnormalized 16 kHz mono input_values.
On 32 clips in seven languages (1,750 word boundaries), fp32 reproduces the PyTorch word timestamps exactly; int8
matches 98% of boundaries and keeps all within one 20 ms frame.
import { AutoModelForCTC, Tensor } from "@huggingface/transformers";
const model = await AutoModelForCTC.from_pretrained(
"Cis-Labs/omniasr-ctc-300m-forced-aligner", { dtype: "q8" }); // or "fp32"
const { logits } = await model({ input_values: new Tensor("float32", wav16k, [1, wav16k.length]) });
Full pipeline (windowing, normalization, Viterbi, word spans, SRT, WhisperX-style JSON):
aligner.js and
scripts/aligner.py.
Evaluation
English: LibriSpeech
Word-boundary error against Montreal Forced Aligner timings on LibriSpeech dev-clean (40 utterances, 842 words;
references from gilkeyio/librispeech-alignments). Mean absolute start / end error in ms (lower is better);
share of word starts within 50 ms in brackets.
| Library and mode | MMS-FA 300M (CC-BY-NC) | Community conversion of the same weights | This repo | WhisperX English default (wav2vec2-base-960h) |
|---|---|---|---|---|
ctc-forced-aligner, CLI default (edges) | 32.5 / 32.8 (84%) | 43.0 / 39.6 (75%) | 36.8 / 36.0 (79%) | n/a |
ctc-forced-aligner, Python API default (segment) | 43.5 / 54.9 (70%) | 35.9 / 43.3 (77%) | 56.7 / 63.9 (47%) | n/a |
WhisperX --align_model | 3,799 / 4,015 (fails: wrong blank) | 3,495 / 3,712 (fails: wrong blank) | 61.4 / 51.3 (37%) | 65.5 / 39.2 (36%) |
- WhisperX: the only one of these multilingual models that works; matches the English-only default (starts slightly better, ends slightly worse).
- ctc-forced-aligner CLI: within about 4 ms of the non-commercial MMS aligner.
segmentmode: word starts land about 55 ms late on average, a systematic offset; useedgesfor tight starts.
Multilingual: DoReCo 2.0
Word-boundary error against hand-checked timings from DoReCo 2.0 (Seifart et al.;
the 29 corpora whose annotation and audio are both CC BY 4.0, 3 recordings each, 28 languages + English),
ctc-forced-aligner CLI mode (edges). Median over languages of each language's median start/end error, in ms
(lower is better); test25 is the 25-language test split 13fragments report on.
| System | License | test25 | dev3 | English | 95% CI (test25) |
|---|---|---|---|---|---|
| FuseAlign (Zyphra; not a CTC model, not a drop-in) | Apache-2.0 | 16 | 18 | 20 | 15–17 |
MMS-FA 300M (MahmoudAshraf/mms-300m-1130-forced-aligner) | CC-BY-NC-4.0 | 21 | 23 | 26 | 20–24 |
13fragments/xls-r-300m-forced-aligner | Apache-2.0 | 23 | 23 | 28 | 22–25 |
| This model, native script | Apache-2.0 | 24 | 24 | 30 | 22–26 |
This model, --romanize | Apache-2.0 | 24 | 22 | 30 | 22–25 |
This model in WhisperX (--align_model) | Apache-2.0 | 36 | 38 | 41 | 35–37 |
- Tied with 13fragments' aligner within the confidence interval; the non-commercial MMS aligner is about 3 ms better. FuseAlign is more accurate but cannot be loaded by these libraries.
- In
segmentmode every CTC aligner lands around 40 ms (this model 41, MMS 40, 13fragments 42). - DoReCo is mostly Latin-script. A FLEURS spot check on non-Latin scripts (Hindi, Russian, Arabic, Amharic, Mandarin, Yorùbá; 4 utterances per language) found native-script alignment within about 10–30 ms (median) of MMS-FA everywhere except Mandarin.
Per-language tables, bootstrap intervals and the harness: results
(DoReCo corpus citations in CITATIONS.bib there).
Limitations
- Memory on long recordings in ctc-forced-aligner: the emission matrix over the 10,288-character vocabulary is
about 2 MB per second in float32 (roughly 7 GB per hour, vs about 20 MB for the 31-token MMS model). Split into
10-15 minute parts, or use
scripts/aligner.py, which keeps only the transcript's vocabulary columns (identical word timestamps on our test set). - Languages: tags list the 102 FLEURS languages, all within the base model's 1,600+. Accuracy is measured on DoReCo's 29 corpora and six FLEURS languages; others are unmeasured.
- Non-Latin scripts: use native script; with
--romanizeboundaries drift by hundreds of ms to seconds. A 32-token romanized-head variant was 4 ms worse on DoReCo's development languages and was not released. - Chinese and Japanese: with punctuation and
--romanizeoff, ctc-forced-aligner'sget_spanscan fail; pass--language(for examplechiorjpn). - Keep the weights in fp32 on CPU. Audio must be 16 kHz mono.
- English results are on read speech; spontaneous, noisy or overlapping speech is harder for every aligner.
What changed from the original checkpoint
- The fairseq2 checkpoint was converted to
Wav2Vec2ForCTC(stable layer norm, layer-norm conv feature encoder; all 423 tensors map 1:1). Weights were not modified. - Only the vocabulary and tokenizer files changed:
- id 0, the CTC blank, is named
<pad>, because WhisperX and ctc-forced-aligner treat the pad token as the blank; - id 4, the word separator, is named
|; - the literal
|character is renamed<pipe>; - 266 uppercase characters whose lowercase form also exists are renamed
<cased_ID>, because both libraries lowercase the vocabulary.
- id 0, the CTC blank, is named
Conversion script, parity checks and evaluation harness: https://github.com/Cis-Labs-Hub/forced-aligner
License and attribution
Apache-2.0. The model weights are © Meta Platforms, Inc. and affiliates, from Omnilingual ASR, released under Apache-2.0. Conversion and vocabulary changes are by Cis Labs. This repo is not affiliated with Meta.
@misc{omnilingualasrteam2025omnilingualasropensourcemultilingual,
title={Omnilingual ASR: Open-Source Multilingual Speech Recognition for 1600+ Languages},
author={Omnilingual ASR team and Gil Keren and Artyom Kozhevnikov and Yen Meng and Christophe Ropers and Matthew Setzler and Skyler Wang and Ife Adebara and Michael Auli and Can Balioglu and Kevin Chan and Chierh Cheng and Joe Chuang and Caley Droof and Mark Duppenthaler and Paul-Ambroise Duquenne and Alexander Erben and Cynthia Gao and Gabriel Mejia Gonzalez and Kehan Lyu and Sagar Miglani and Vineel Pratap and Kaushik Ram Sadagopan and Safiyyah Saleem and Arina Turkatenko and Albert Ventayol-Boada and Zheng-Xin Yong and Yu-An Chung and Jean Maillard and Rashel Moritz and Alexandre Mourachko and Mary Williamson and Shireen Yates},
year={2025},
eprint={2511.09690},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2511.09690},
}
Cis Labs: AI research lab. Towards intelligence for everyone. huggingface.co/Cis-Labs · github.com/Cis-Labs-Hub