Skip to live pronunciation scorer

Multi-model · 2 models · 2 Web Workers · 76.81 MB q4 + 84 MB fp32 WASM · Apache-2.0 + MIT

Live Pronunciation & Phoneme Diff Scorer

Chains Stage 1: XLSR-53 Phoneme (listens to spoken audio → observed IPA) with Stage 2: CharsiuG2P byT5 (converts your reference text → canonical IPA), then computes an exact Levenshtein phoneme alignment & PER % score locally in the browser.

1 · Workflow models (~160.8 MB total)

Stage 1 · XLSR-53 Phoneme (76.81 MB)

Audio → observed IPA via ../worker.js (air-air/xlsr-53-espeak-student-ONNX, q4 WASM).

Stage 2 · CharsiuG2P byT5 (84 MB)

Reference text → canonical IPA reusing ../../grapheme-to-phoneme/worker.js (fp32 WASM).

2 · Spoken audio + reference transcript → IPA alignment

Loading starter clip…

Phoneme agreement–
PER (edit rate)–
Matches–
Sub / Del / Ins–
Stage 1 (XLSR)–
Stage 2 (G2P)–
Total pipeline–

Stage 1 · Observed spoken IPA (XLSR-53)

Waiting for Stage 1 audio inference…

Stage 2 · Canonical target IPA (CharsiuG2P)

Waiting for Stage 2 text-to-IPA inference…

Aligned Levenshtein phoneme diff (Target top · Spoken bottom)

Run both stages to compare canonical G2P phonemes against acoustic XLSR-53 phonemes.

Step Op Target IPA (G2P) Observed IPA (XLSR) Articulatory note
Run both stages to populate per-phoneme alignment operations.

See inside the code

Show the code — phoneme.js: G2pStageClient (reused ../../grapheme-to-phoneme/worker.js)
Show the code — phoneme-core.mjs: normalizeIpaForComparison() & computePhonemeDiff()