Skip to IPA phoneme studio

automatic-speech-recognition Β· audio β†’ IPA phonemes Β· WASM Β· q4 Β· 76.81 MB Β· Apache-2.0 Β· 392 IPA tokens

Wav2Vec2 XLSR-53 eSpeak β€” Audio to IPA Phonemes

Transcribes raw 16 kHz speech directly into International Phonetic Alphabet (IPA) phonemes across languages using an 8-layer distilled Wav2Vec2 CTC encoder β€” no language model, no spelling dictionary, and nothing leaves your browser.

IPA Phoneme Studio

Loading rights-cleared starter clip…

Click the waveform or any phoneme token below to seek audio playback.

Recognised IPA phoneme stream

Load the model and click Transcribe IPA to decode phonemes.
Backend–
Inference–
CTC frames–
IPA phones–
Blank ratio–
Mean conf.–
NaN / invalid0

Aligned phoneme timeline (click to play & inspect)

See inside β€” 20 ms CTC frame posteriors

Every ~20 ms frame emits a probability distribution over all 392 IPA tokens (ID 0 = <pad> blank + 388 eSpeak phones). Greedy CTC collapses consecutive duplicate IDs and drops blanks. Click any frame bar or phoneme tile to inspect competing phonetic hypotheses and frame entropy (bits).

Run transcription to inspect the 20 ms frame-by-frame CTC emission strip.

Select a phoneme tile or click a frame bar to inspect top-3 posterior candidates.

At a glance

Upstream model facebook/wav2vec2-xlsr-53-espeak-cv-ft (24-layer XLSR-53 fine-tuned on multilingual Common Voice eSpeak IPA)
Browser ONNX build air-air/xlsr-53-espeak-student-ONNX (8-layer distilled student β€” 76.81 MB vs 241 MB full model, ~3Γ— faster)
Task & loader path automatic-speech-recognition Β· loaded via AutoFeatureExtractor + AutoModelForCTC + vocab.json (because Wav2Vec2PhonemeCTCTokenizer is absent in Transformers.js 3.7.5)
Architecture Wav2Vec2ForCTC: 7-layer CNN encoder (320Γ— downsampling = 20 ms/frame at 16 kHz) + 8 transformer layers (hidden_size=1024, 16 heads) + 392-symbol IPA CTC head
Quantisation & size q4 (4-bit block-32 matmuls, 8-bit convs) Β· onnx/model_q4.onnx + configs = 76.81 MB decimal (73.25 MiB)
Backend & runtime WebAssembly (wasm) via shared @huggingface/transformers@3.7.5 in a dedicated Web Worker
License Apache-2.0 (both upstream teacher and distilled ONNX student)
Honest limitations Distilled on 88 h of FLEURS (de, es, fr, it, ja, ko, pl, pt, ru, sv); matches the 24-layer teacher on 67% of non-blank frames. Outputs acoustic IPA without a lexicon or language model, so heavy noise or unseen accents can shift vowel qualities.

Why audio-to-IPA in the browser matters

Standard ASR models like Whisper silently autocorrect mispronunciations into valid dictionary words β€” making them blind to how someone actually spoke. An acoustic CTC phoneme recogniser listens directly to sounds and emits timestamped IPA symbols locally with zero audio uploaded.

Use-case ladder

How the API works

Because Wav2Vec2PhonemeCTCTokenizer is not built into Transformers.js 3.7.5, we load AutoFeatureExtractor and AutoModelForCTC directly, fetch the 392-entry vocab.json into transformers-cache, and run greedy CTC decoding in worker.js.

Show the code β€” worker.js: AutoFeatureExtractor + AutoModelForCTC + cached vocab.json
Show the code β€” phoneme-core.mjs: decodeCtcLogits() (argmax, softmax entropy, repeat collapse)

References