Azure Pronunciation Assessment scores intelligibility, whether a listener can understand you, not how native you sound. AccentHelper, the accent-coaching app I'm building, was showing that score as the headline, and it gave a fake thick German accent 87 out of 100. I replaced it with a stricter grade computed only from Azure's own outputs: a squared curve on PronScore, minus points for word errors and for weak phonemes. The same PronScore of 87 now grades 55 before any penalty. The four sub-score bars that ran high on bad accents moved into a collapsed panel. All of it is one commit, dated 11 April 2026.
In the first browser test I read a practice sentence in a fake thick German accent. The score card said 87. That was PronScore, Azure's weighted overall for the recording. The attempt lists on the dashboard and progress pages showed a number more lenient than that, Azure's AccuracyScore, and the 30-day average was built from it too.
The accent-reduction track in AccentHelper is for people trying to sound clearer or more native-like in a target accent. A heavy accent that a listener can still follow scores high on an intelligibility score, and that score tells someone who opened the app to hear how far they are from a native speaker nothing. It answers Azure's question, not theirs.
Where the 87 came from
For each recording Azure returns AccuracyScore, FluencyScore, CompletenessScore, ProsodyScore and a weighted PronScore, plus a score for every word and every phoneme. Each word also carries an error type, which is None for a clean word and otherwise a value such as Mispronunciation, Omission or Insertion. The app's normalizer stores AccuracyScore as accuracy and PronScore as pronunciation (and pron). The project's own notes rate them in that order: accuracy is per-word and very lenient, and pronunciation is the weighted overall and still lenient for accents.
Before the fix, the score card and the session page read pronunciation and fell back to accuracy. The dashboard and progress lists printed accuracy directly, and the 30-day average was a mean of accuracy values. So the 87 on the score card was the stricter of the two numbers the app showed, and the lists and the trend line used the more lenient one.
An exaggerated accent that still gets every word of the reference sentence across is the case Azure's calibration is built to pass. Azure's question is "can you be understood?", and for that recording the answer was yes.
After the fix, every read prefers a field called grade. Older rows that predate it fall back through pronunciation, pron and accuracy, in that order. A later commit routes Azure only to accent-reduction goals, and the headline now prefers a goal-relative score from models that hear the recording. The chain stays for older rows and for diagnostics.
The grade
This is the function from src/lib/speech/pronunciation.ts, unchanged:
export function computeGrade( pronScore: number, words: PronunciationWord[]): number { // Power curve: [50, 100] → [0, 100] with exponent 2. const normalized = Math.max(0, Math.min(1, (pronScore - 50) / 50)); const base = Math.pow(normalized, 2) * 100; // Word-error penalty. const errorWords = words.filter((w) => w.errorType !== "None").length; const wordPenalty = Math.min(25, errorWords * 4); // Weak-phoneme penalty. const allPhonemes = words.flatMap((w) => w.phonemes); const weakShare = allPhonemes.length > 0 ? allPhonemes.filter((p) => p.accuracy < 70).length / allPhonemes.length : 0; const phonemePenalty = Math.round(weakShare * 25); return Math.max( 0, Math.min(100, Math.round(base - wordPenalty - phonemePenalty)) );}Run on one clean word (no error type, every phoneme above 70), so the penalties are zero and only the curve shows:
Azure 50 -> grade 0Azure 75 -> grade 25Azure 85 -> grade 49Azure 87 -> grade 55Azure 90 -> grade 64Azure 95 -> grade 81Azure 100 -> grade 100The base takes PronScore, floors it at 50, maps 50 to 100 onto 0 to 1, squares it and scales back to 100. For the fake accent that is (87 - 50) / 50 = 0.74, and 0.74 squared is 0.5476, which rounds to 55. A PronScore of 95, the score the tests call good, is 0.9 squared, so 81.
I tried a linear rescale of the same range first. It still put the fake accent in the 60s. Squaring stretches the top of the scale, where both the fake accent and a good read landed. From Azure 75 to 85 the grade rises 24 points, from 85 to 95 it rises 32, and the last 5 Azure points are worth 19 grade points. Azure's band from 85 to 100 becomes 49 to 100.
source: accenthelper src/lib/speech/pronunciation.ts lines 147-189 (computeGrade and its doc comment, commit 3063ad5); LLM.md lines 144-153; src/lib/__tests__/pronunciation.test.ts lines 219-221 · accentGrade.data.ts
The two penalties use the parts of Azure's response that the overall score folds away. Every word whose error type isn't None (mispronounced, dropped, or inserted) costs 4 points, up to 25, so the cap is reached at the seventh word. The phoneme penalty is the share of phonemes that scored below 70, times 25, rounded. A take where every phoneme is under 70 loses the full 25. The test for word errors uses an Azure 90 with one mispronounced word, one omission and one insertion: the base is 64, the penalty is 12, and the grade is 52.
source: accenthelper src/lib/speech/pronunciation.ts lines 165-189 (computeGrade, commit 3063ad5); src/lib/__tests__/pronunciation.test.ts lines 232-241 · accentGrade.data.ts
Hiding the bars that ran high
The score card used to show four prominent bars under the overall score: Accuracy, Fluency, Completeness and Prosody. They are Azure's intelligibility sub-scores, and they ran high even on bad accents. Once the headline became the grade, a 55 sat above four high bars, and the 55 looked like a bug.
I moved them into a collapsed disclosure labelled "Azure diagnostics", with a short explainer: these are raw sub-scores from the speech recognizer, they measure whether the words were intelligible, they run high even for thick accents, and the overall score above them is the accent-coaching grade. The bars inside are grey at every level.
A user can't do anything with a Fluency bar that disagrees with the grade, except stop believing one of the two. The words that cost points are what they can act on, and the score card still lists up to six of them: any word with an error type or an accuracy under 70.
The grade invents nothing: every input is something Azure returned. On PronScore alone the curve never reorders two takes. It only spreads them apart. The penalties bring in Azure's per-word error types and per-phoneme scores, which were already in the response and which the overall score folds into one number. If Azure can't hear a difference, the grade can't either. Azure still returns the same numbers for the fake-accent take. The curve alone moves it from 87 to 55, and any word errors or weak phonemes subtract from that.
Azure was right about the recording: I could be understood. Nobody on the accent-reduction track opens the app to find that out.