Views
No views yet
Companion variant:phonetic-whisper-mlx-broad-multitrains on TIMIT broad + CommonVoice broad in 7 languages and emits broad-phonemic IPA. Use thisnarrow-envariant for English narrow phonetic detail; usebroad-multifor cross-lingual broad IPA.
phonetic-whisper-mlx-narrow-en is a decoder-only fine-tune of
mlx-community/whisper-large-v3-mlx.
The encoder is frozen during training; only the decoder weights are
updated. The model takes 16 kHz English audio and emits TIMIT-narrow
IPA strings.bcl, dcl, gcl, pcl, tcl, kcl) and
silences (pau, epi, h#) dropped. The remaining 52-symbol
inventory preserves narrow distinctions such as the glottal stop ʔ,
the flap ɾ, syllabic consonants (m̩, n̩, l̩, ŋ̍),
r-coloured vowels (ɝ, ɚ), the reduced vowel ɨ, the devoiced
schwa ə̥, the fronted ʉ, the voiced glottal ɦ, and the nasal
flap ɾ̃.broad-multi variant); non-English input (this model has only seen
TIMIT-style English narrow); orthographic ASR; cross-lingual phonetic
recognition; commercial deployment without complying with the upstream
LDC TIMIT non-commercial licensing terms.1from huggingface_hub import snapshot_download
2import mlx.core as mx
3from mlx_whisper.load_models import load_model
4from mlx_whisper.audio import load_audio, pad_or_trim, log_mel_spectrogram
5from mlx_whisper.decoding import DecodingOptions, decode
6from mlx.utils import tree_flatten, tree_unflatten
7
8# Download checkpoint weights from HF.
9ckpt = snapshot_download("barathanasln/phonetic-whisper-mlx-narrow-en")
10
11# Load Whisper-large-v3 architecture and overlay our decoder weights.
12model = load_model("mlx-community/whisper-large-v3-mlx")
13model.set_dtype(mx.float32)
14trained = mx.load(f"{ckpt}/model.safetensors")
15decoder_weights = {k: v for k, v in trained.items() if k.startswith("decoder.")}
16params = dict(tree_flatten(model.parameters()))
17for k, v in decoder_weights.items():
18 if k in params:
19 params[k] = v
20model.update(tree_unflatten(list(params.items())))
21
22# Inference. ALWAYS pass language="en" — see Training-time language token.
23audio = load_audio("your-english-audio.wav")
24mel = log_mel_spectrogram(pad_or_trim(audio), n_mels=128)
25mel = mx.expand_dims(mel, 0).astype(mx.float32)
26features = model.encoder(mel)
27result = decode(model, features, DecodingOptions(language="en", without_timestamps=True))
28print(result[0].text.strip())| Source | Samples | Convention |
|---|---|---|
TIMIT narrow (English, ARPABET → IPA via prepare_timit_dataset.py) | 4,620 | Narrow |
<|en|> as the start-of-transcript prefix regardless of source-audio language; the token is overloaded as "emit IPA". This is intentional — phonetic transcription is meant to be language-agnostic, so the decoder is trained without a per-language signal. Pass language="en" at inference.| Benchmark | n | PFER (%) | PER (%) |
|---|---|---|---|
| TIMIT narrow core test (in-distribution) | 1,680 | 5.83 | 14.98 |
broad-multi
variant.1@software{aslan2026phonetic_whisper_mlx,
2 author = {Aslan, Barathan},
3 title = {phonetic-whisper-mlx: Whisper-decoder fine-tunes for IPA transcription on Apple Silicon},
4 year = {2026},
5 url = {https://github.com/barathanaslan/phonetic-whisper-mlx},
6 version = {0.1.0},
7 license = {MIT (code), CC BY-NC 4.0 (weights)}
8}Garofolo, J. S., et al. TIMIT Acoustic-Phonetic Continuous Speech Corpus LDC93S1. Web download. Philadelphia: Linguistic Data Consortium, 1993.
Taguchi, C. Universal Automatic Phonetic Transcription into the IPA. arXiv:2308.03917, 2023.Lu et al. POWSM: A Phonetic Open Whisper-Style Speech Foundation Model. arXiv:2510.24992, 2025.