wav2vec2 word aligners for Core ML
Word aligners for Aagedal Media Converter. After Whisper transcribes a file, the app re-times each word with CTC forced alignment against one of these models, so subtitles start and end with the speech.
Each archive holds Wav2Vec2CTC.mlpackage and aligner.json. The app downloads the archive, checks its SHA-256 and compiles the model. Every model comes in two versions: 8-bit weights (the app's default, about half the size) and the original float16 weights (-float16.zip).
| Archive | Language | Source model (revision) | License | Weights | Bytes | SHA-256 |
|---|---|---|---|---|---|---|
nb-bokmaal-300m.zip |
Norwegian Bokmål | NbAiLab/nb-wav2vec2-300m-bokmaal-v2 (640997a0) |
Apache-2.0 | 8-bit | 271942807 | cccc3c1e0e5a108248980362a38bd0032ea56bc83e809750be96e65258029c68 |
nb-bokmaal-300m-float16.zip |
Norwegian Bokmål | NbAiLab/nb-wav2vec2-300m-bokmaal-v2 (640997a0) |
Apache-2.0 | float16 | 584328647 | 0c4e1ffb1669d65f7e931804a8a35a3208ea7f188910f4081c3fd37a4026d962 |
nn-nynorsk-300m.zip |
Norwegian Nynorsk | NbAiLab/nb-wav2vec2-300m-nynorsk (6dc09e61) |
Apache-2.0 | 8-bit | 271234759 | 21e540c8364569989fd2b550b3176c83a89528833f4916888f668872ddbebd34 |
nn-nynorsk-300m-float16.zip |
Norwegian Nynorsk | NbAiLab/nb-wav2vec2-300m-nynorsk (6dc09e61) |
Apache-2.0 | float16 | 584434843 | c2eb5171009a499729f08af38d51b8332bfb250e6256223f4fd8e4be5ac5afb9 |
sv-voxrex-large.zip |
Swedish | KBLab/wav2vec2-large-voxrex-swedish (ca70e31c) |
CC0-1.0 | 8-bit | 271284155 | 62c9bb3a1f8991c08538990644bf249143eb8b5ea306d3b7008fad456250495d |
sv-voxrex-large-float16.zip |
Swedish | KBLab/wav2vec2-large-voxrex-swedish (ca70e31c) |
CC0-1.0 | float16 | 584398895 | 636fe7f3fc57cefbb8e585d29e40796c2c85842246df855cf28870e4eac74a25 |
en-base-960h.zip |
English | facebook/wav2vec2-base-960h (22aad52d) |
Apache-2.0 | 8-bit | 80572858 | 505604db5921b0cd12ce650a00c74358dd97bd6928b067c52778e47ede857e4e |
en-base-960h-float16.zip |
English | facebook/wav2vec2-base-960h (22aad52d) |
Apache-2.0 | float16 | 175081458 | abc050fa89f6e1555872d0ee13b13e5d412839921087bb619375465d3c68500d |
de-xlsr53-large.zip |
German | jonatasgrosman/wav2vec2-large-xlsr-53-german (4b8a0295) |
Apache-2.0 | 8-bit | 273723848 | f56dbdeff0786b8e53034284aa87ad7e0c4d336bda27dee926d97c880bb2bd34 |
de-xlsr53-large-float16.zip |
German | jonatasgrosman/wav2vec2-large-xlsr-53-german (4b8a0295) |
Apache-2.0 | float16 | 583437774 | 45e53b7bacc33f57d0a2979c93e1e20a57d2faa57083eb94484dece610e95f80 |
es-xlsr53-large.zip |
Spanish | jonatasgrosman/wav2vec2-large-xlsr-53-spanish (96d7e9b4) |
Apache-2.0 | 8-bit | 273736022 | 493ca98c9ba59ea5440eb652f77fb5131aaa16ed7b33257cb6fdb5e015a4c8ac |
es-xlsr53-large-float16.zip |
Spanish | jonatasgrosman/wav2vec2-large-xlsr-53-spanish (96d7e9b4) |
Apache-2.0 | float16 | 583433890 | d25ee3e1bbd539e636e7997da4ad8db2db8c264e12627a8330acc718f60e9bec |
fr-xlsr53-large.zip |
French | jonatasgrosman/wav2vec2-large-xlsr-53-french (7c79e105) |
Apache-2.0 | 8-bit | 273763357 | bdbb9c69815ae1489d62349ba34affc2552c655e9bc06d673eff2896141a57f8 |
fr-xlsr53-large-float16.zip |
French | jonatasgrosman/wav2vec2-large-xlsr-53-french (7c79e105) |
Apache-2.0 | float16 | 583468606 | 65509c12ab23bc73e33c9594a9e7c9ed06238a4af4edc66d060cf3581a28cd9a |
it-xlsr53-large.zip |
Italian | jonatasgrosman/wav2vec2-large-xlsr-53-italian (dab04a3e) |
Apache-2.0 | 8-bit | 273755073 | 2925d35b3dabaca0ad3fc4a3ab8b7e579242624d63368cc0a3aa9ebf969e6dac |
it-xlsr53-large-float16.zip |
Italian | jonatasgrosman/wav2vec2-large-xlsr-53-italian (dab04a3e) |
Apache-2.0 | float16 | 583448222 | e89a02b40580abb6502aa4ac8feb272f91302976f3b5095c2b453d54ec685345 |
pt-xlsr53-large.zip |
Portuguese | jonatasgrosman/wav2vec2-large-xlsr-53-portuguese (634ac655) |
Apache-2.0 | 8-bit | 273510538 | 5dae55a5df9fe0ba703721fafa86ee1e6b19cca3b258b534428238d6b81b0275 |
pt-xlsr53-large-float16.zip |
Portuguese | jonatasgrosman/wav2vec2-large-xlsr-53-portuguese (634ac655) |
Apache-2.0 | float16 | 583451586 | 5a461efe607695605e70e6633fdb05c63cfbf550f21a8aa1676ff5150c336a3b |
Changes from the source models
These are format conversions; no weights were retrained. Each model was converted with scripts/convert-wav2vec2-coreml.py (PyTorch 2.7.0, transformers 4.57.6, coremltools 9.0):
- traced with a
log_softmaxadded to the output, so the model returns per-frame log probabilities; - converted to a Core ML ML Program that computes in float16, with flexible input from 0.5 to 40 seconds of 16 kHz audio (macOS 15 or later);
- for the 8-bit archives, weights quantized to 8-bit integers (symmetric, per output channel);
- the tokenizer's vocabulary, blank and word-delimiter tokens are copied into
aligner.json.
At 3 s and 17 s of input, each converted model (8-bit and float16) picks the same token as the PyTorch original on every frame. On five minutes of speech, forced alignment with the 8-bit models places 99.97–100% of characters within one 20 ms frame of the float16 conversion, and none more than 40 ms away.
Licenses
Each archive keeps its source model's license: the Apache-2.0 models are covered by LICENSE-Apache-2.0.txt, and the KBLab model is CC0-1.0 (public domain dedication). The original authors are NbAiLab (National Library of Norway), KBLab (National Library of Sweden), Meta AI and Jonatas Grosman (German, Spanish, French, Italian and Portuguese). They do not endorse this conversion.