Skip to content
Engclaw

How your pronunciation score is calculated

Engclaw compares what you said with what you meant to say, using speech models that run on your own computer.

Last updated

Six steps

  1. Which sounds did you make? A phone-recognition model (wav2vec2) listens and writes down the sounds it heard, as IPA phones, without knowing what you meant to say.
  2. Which sounds should you have made? espeak-ng turns the target sentence into its expected phones.
  3. Compare. The two phone sequences are aligned and every mismatch is marked.
  4. Which words did you say? A second model transcribes your speech. If it hears a different word, that is a different word.
  5. Do you sound like it? A reference voice (Kokoro) says the same sentence. The two recordings are compared frame by frame with dynamic time warping, so speaking a bit slower or faster is fine, but different sounds are not.
  6. Intonation. Pitch and energy curves are drawn for you and for the reference. They are shown to you and are not part of the score formula below.

The formula

The final score out of 100 is 30% acoustic similarity, 40% correct sounds and 30% correct words. Each part runs from 0 to 100:

  • Correct sounds is 100 × (1 − phoneme error rate). The phoneme error rate counts replaced, missing and extra sounds against the number of expected sounds.
  • Correct words is 100 × (1 − word error rate), counted the same way over words.
  • Acoustic similarity turns the distance between your recording and the reference voice into a value: close enough scores 100, and it falls towards 0 as the distance grows.

Each part is kept between 0 and 100 before they are combined.

A worked example

The sentence is "hello I am a developer". This comes from a sample recording in the project's reference test data, in which the speaker's "a" is heard as "and".

ExpectedHeard
Wordshello I am a developerhello I am and developer
Sounds around the erroræ m ə d ɪ væ m æ n d ɪ v
  • Sounds: one replaced and one extra, out of 16 expected. The phoneme error rate is 2 ÷ 16 = 0.125, so correct sounds is 87.5.
  • Words: one of 5 words differs. The word error rate is 0.2, so correct words is 80.

Those two parts contribute 0.4 × 87.5 + 0.3 × 80 = 59 points. The rest depends on acoustic similarity, which depends on the reference voice, so it is shown here for three possible values:

Acoustic similarityFinal score
10089
7080
4071

When to doubt the score

  • Scores are an aid, not an exam. A phone-level model can disagree with a human listener, especially for accents it has seen less of.
  • The grading is strict: one mumbled word is marked even in a fluent sentence.
  • Background noise and a poor microphone can change what the models hear.
  • Mandarin is different. Its experimental score is character accuracy from speech recognition, not individual sounds or tones, and it has no acoustic or phoneme parts.

Everything stays on your computer

Scoring needs no server or account. The models are downloaded once from Hugging Face, verified by checksum, and run on your processor or through WebGPU.

Credits and source code

The method is a TypeScript port of OpenPronounce (MIT licence), checked against its Python output. Engclaw uses its own reference voice, so its scores are not directly comparable with OpenPronounce's. The code is open: read the scoring package.

Couldn’t afford a course? Neither could we.

Download Engclaw and start fixing your accent today.

Install guide · All releases & checksums · Linux .deb