Pronunciada
Website · Benchmarks · Scoreboard · How it works
Pronunciada is an open-source Python library for on-device pronunciation assessment with cloud-level accuracy. It takes a recording and the text the speaker was reading, and returns the probability (0 to 1) that a human rater would accept each phoneme, each word and the sentence as a whole.
It covers English, Mandarin, Japanese, Spanish, French, German, Italian, Portuguese, Russian and Korean.
- It matches or beats Microsoft Azure Pronunciation Assessment in 77 of 84 comparisons on public test sets: significantly better in 40, not significantly different in 37 and significantly worse in 7.
- It runs on the device. Scoring a 3.5-second recording takes about 50 ms on an Apple M3 Pro, on CPU with ONNX Runtime and no PyTorch dependency. The audio does not leave the machine.
- It is built on ZIPA, an open multilingual phone recognizer with 64M parameters (248 MB, or 67 MB quantized). It is significantly more accurate than ZIPA alone on 45 of 60 tests and significantly less accurate on none.
The numbers, and the tests where Azure is ahead, are under Benchmarks.
Quick start
pip install pronunciada
pronunciada check clip.wav "It was a beautiful day for a float" --lang en
Output as text
~ Close sentence 75% · accuracy 7.7/10 · fluency 8.1/10 en · strictness 0.5
It was a beautiful day for a float
~~~~~~~~~ ~ ^^^^^
beautiful 63% b 92% [j→b 67%] u 66% t 58% [ə 57%] f 84% ə 64%
[l̴ 65%]
a 79% [ɪ 64%]
float 10% f 83% [l 27%] [oʊ 35%] t 56%
→ Let the air pass along the sides of the tongue for /l/ in “float”.
This is the output for site/samples/en-learner-1.mp3, a recording from the speechocean762 test set. The corpus annotators marked the /l/ of "float" as dropped. ^ marks a word below 0.5 and ~ a word between 0.5 and 0.8.
The same call from Python:
import pronunciada
result = pronunciada.score("clip.wav", "It was a beautiful day for a float", lang="en")
print(f"{result.prob:.2f}")
# 0.75
for word in result.words:
print(word.text, f"{word.prob:.2f}")
# It 0.87
# was 0.96
# a 0.97
# beautiful 0.63
# day 0.94
# for 0.93
# a 0.79
# float 0.10
for phone in result.words[7].phones:
print(phone.ipa, f"{phone.prob:.2f}", repr(phone.heard))
# f 0.83 None
# l 0.27 ''
# oʊ 0.35 'ɔ'
# t 0.56 None
heard is set when a phoneme scores below 0.5. It is what the recognizer output in that span, or an empty string if it output nothing there.
The model is downloaded to ~/.cache/pronunciada on first use.
A 45-second overview with sound follows this recording from the sentence to its words and sounds, then shows the main results: docs/assets/demo.mp4.
Benchmarks
All comparisons are with the Azure Pronunciation Assessment REST API (region westus, November 2026, one request per recording). Both systems received the same audio and reference text. An asterisk in a chart, and bold in a table, marks the better system where the difference is significant (paired bootstrap over speakers, p < 0.05). The charts are generated from the scoreboard by scripts/graphics/make_charts.py. Confidence intervals and every other table are in results/SCOREBOARD.md.
Summary
The scoreboard has 84 comparisons with Azure, each one metric on one held-out test set. Pronunciada is significantly ahead in 40, not significantly different in 37 (ahead in 20 of those) and significantly behind in 7. The seven are English sentence prosody, the native false-alarm rate in English, Japanese, Spanish and Portuguese, and two tests on Common Voice recordings (English native versus non-native speakers, Japanese accepted versus rejected clips). The sections below show the main tests, starting with the one that covers all ten languages.
All ten languages
Learner recordings with expert annotation are public for English and Mandarin only, so the test that covers all ten languages uses native speech: 150 FLEURS test recordings per language, scored against a reference in which one word has been replaced by a word that differs by a single phoneme. The figure is the area under the ROC curve for separating the replaced word from the unchanged words.
This test measures whether a system detects a mismatch between audio and text. It does not measure accuracy on learner speech.
Table
| Language | Pronunciada | Azure |
|---|---|---|
| English | 0.981 | 0.963 |
| Mandarin | 0.975 | 0.966 |
| Japanese | 0.968 | 0.919 |
| Spanish | 0.990 | 0.942 |
| French | 0.986 | 0.937 |
| German | 0.960 | 0.887 |
| Italian | 0.979 | 0.970 |
| Portuguese | 0.963 | 0.938 |
| Russian | 0.900 | 0.909 |
| Korean | 0.944 | 0.937 |
English learners
speechocean762 test set: 2,500 recordings from 125 Mandarin-speaking learners, each scored by five experts. The figure is the Pearson correlation between system score and expert score.
Table
| Level | Pronunciada | Azure |
|---|---|---|
| Phoneme | 0.685 | 0.538 |
| Word | 0.609 | 0.589 |
| Sentence accuracy | 0.748 | 0.673 |
| Sentence fluency | 0.779 | 0.708 |
| Sentence prosody | 0.772 | 0.827 |
| Sentence total | 0.762 | 0.796 |
Mispronunciation detection
Area under the ROC curve for separating the phonemes or words that annotators marked as mispronounced from the rest. L2-ARCTIC (speakers of six first languages) and EpaDB (Spanish-speaking learners) were not used to train or tune any part of Pronunciada. The Mandarin rows are from the OMPAL test set: 21 French-speaking learners of Taiwan Mandarin, every character marked by teachers.
On speechocean762 test (47,041 phonemes, 18.6% marked as errors), with both systems thresholded to flag the same 36% of the marked phonemes, 65.9% of Pronunciada's flags are phonemes the experts marked, against 44.0% of Azure's.
Tables
| English, phoneme level (AUC) | Pronunciada | Azure |
|---|---|---|
| L2-ARCTIC test | 0.712 | 0.631 |
| EpaDB test | 0.721 | 0.587 |
| Mandarin, OMPAL test | Pronunciada | Azure |
|---|---|---|
| Word, any error (AUC) | 0.792 | 0.704 |
| Word, tone error only (AUC) | 0.778 | 0.679 |
| Word, consonant or vowel error (AUC) | 0.856 | 0.822 |
| Sentence accuracy (Pearson) | 0.634 | 0.363 |
| Sentence fluency (Pearson) | 0.590 | 0.343 |
Azure was not tuned on any of this data. Pronunciada's calibration models were fitted on speechocean762 train, FLEURS train and validation, and the OMPAL development speakers. Every figure above is from a held-out split.
On-device latency
Median time for one Scorer.score call on 100 speechocean762 recordings (mean length 3.5 s), Apple M3 Pro, CPU only.
| Model | 4 threads | 1 thread |
|---|---|---|
| fp32 (248 MB) | 50 ms | 100 ms |
| int8 (67 MB) | 40 ms | 65 ms |
Peak memory of the Python process while scoring is about 0.6 GB with the fp32 model and 0.4 GB with int8 (English, one thread, Apple M3 Pro). The int8 model was sized with phones in mind; there are no packaged iOS or Android builds yet.
For recordings of about ten seconds (FLEURS test), the median is 0.30 s to 0.44 s on one thread, depending on the language. A request to Azure's REST API for recordings of similar length took 1.8 s to 3.0 s from the same laptop, upload included. This is not a controlled comparison: the two sets of recordings differ. The per-language figures are in the scoreboard.
Compared with ZIPA alone
To measure what this project adds to the open model, the same held-out tests were run on the unmodified ZIPA model scored with the standard goodness-of-pronunciation method: the mean log-posterior of each expected phoneme over its force-aligned frames, with no adapters, calibration, or tone and stress models. Over 60 test rows, Pronunciada is significantly ahead in 45 and not significantly different in 15. ZIPA alone is not significantly ahead in any. Repeating the correlation rows with a rank-based measure (Spearman) leaves every one of them significantly ahead, with smaller gaps at the phoneme and word level (0.469 against 0.309 for phonemes).
The difference is smallest where the task is easy for both, such as detecting a clearly different word in the prompt (AUC 0.99 for both), and largest for Mandarin tones, which ZIPA does not output. For reference, ZIPA alone scores 0.659 and 0.638 at detecting marked errors on L2-ARCTIC and EpaDB, where Azure scores 0.631 and 0.587, and 0.434 in phoneme-level agreement with expert scores, where Azure scores 0.538. The differences between ZIPA alone and Azure were not tested for significance. All rows are in results/zipa_baseline.md.
Supported languages
| Language | Code | Install | Also scored |
|---|---|---|---|
| English | en |
pronunciada |
word stress |
| Mandarin, Simplified and Traditional | zh |
pronunciada[zh] |
tone of each syllable, aspiration |
| Japanese | ja |
pronunciada[ja] |
vowel and consonant length |
| Spanish | es |
pronunciada |
word stress |
| French | fr |
pronunciada |
|
| German | de |
pronunciada |
word stress |
| Italian | it |
pronunciada |
word stress |
| Portuguese (Brazil) | pt |
pronunciada |
word stress |
| Russian | ru |
pronunciada |
word stress, palatalization |
| Korean | ko |
pronunciada |
aspirated and tense consonants |
pip install "pronunciada[all]" installs every language. The Japanese extra adds about 300 MB of dictionaries.
Usage
Python
Create a Scorer once when scoring more than one recording:
from pronunciada import Scorer
scorer = Scorer("zh") # or Scorer("en", precision="int8")
result = scorer.score("clip.wav", "我家有四口人")
for word in result.words:
for syllable in word.syllables:
print(syllable.text, syllable.tone_expected, syllable.tone_heard, syllable.tone_prob)
strictness (0 to 1, default 0.5) moves every probability between a lenient and a strict calibration. scorer.rescore(result, strictness=0.8) applies a new value without running the acoustic model again.
result.coaching() returns the detected errors as dictionaries, ordered by severity. Each has the word, the expected phoneme, the phoneme recognized when one can be named, and the articulatory features that differ:
for item in result.coaching():
print(item["kind"], item["word"], item["expected_ipa"], item["heard_ipa"], item["diff_keys"])
# substitution float l None ['lateral']
# substitution beautiful l̴ None ['lateral']
# ...
pronunciada.tips.tips() turns these into the sentences shown in the command-line report. Each tip has a stable key so an application can substitute its own wording or translation. The schema is in docs/COACHING.md.
The result also carries timestamps for every phoneme and word, fluency and completeness scores, omitted and inserted words, and warnings when the recording is clipped, noisy, very quiet or mostly silence.
Command line
pronunciada check clip.wav "我家有四口人" --lang zh
pronunciada check clip.wav "Buenos días" --lang es --json
pronunciada langs
Options are listed in docs/CLI.md.
HTTP server
pronunciada serve --port 8765
curl -s -F audio=@clip.wav --form-string "text=Good morning" --form-string lang=en http://127.0.0.1:8765/v1/score
The server is for local use. It has no authentication. See docs/SERVER.md.
Azure-compatible output
to_azure converts a result to the JSON layout returned by Azure Pronunciation Assessment. pronunciada serve --azure-compat accepts Azure's short-audio REST request and answers in the same layout.
from pronunciada.compat.azure import to_azure
payload = to_azure(pronunciada.score("clip.wav", "Good morning", lang="en"))
payload["NBest"][0]["PronunciationAssessment"]["AccuracyScore"]
The field names match. The score distributions do not, so thresholds chosen for Azure need to be chosen again. Field-by-field notes are in docs/AZURE_COMPAT.md.
MCP server
pip install "pronunciada[mcp]"
pronunciada mcp
This starts a Model Context Protocol server on stdio with one tool, assess_pronunciation(audio_path, reference_text, language). Client configuration is in docs/MCP.md.
How it works
- The reference text is converted to a phoneme sequence with per-language dictionaries and rules. This includes Mandarin tone sandhi and French liaison.
- ZIPA produces frame-level posteriors over IPA phones from the audio alone. A small per-language adapter corrects its systematic confusions.
- For each expected phoneme, the scorer compares the likelihood that it was produced with the likelihood of a substitution or a deletion. Each likelihood is a CTC forward score summed over all alignments, so the result does not depend on a single forced alignment.
- Gradient-boosted calibrators fitted on expert-scored speech map this evidence to acceptance probabilities for phonemes, words and sentences.
- Tone, stress, length and a few consonant contrasts are not recoverable from the phone posteriors. Separate small classifiers read ZIPA's intermediate layers for these.
All models trained for this project together add about 10 MB to the package. The design is described in docs/DESIGN.md.
Limitations
- Accuracy on learner speech has been measured for English and Mandarin only. The other eight languages are evaluated on native speech with altered reference text and on Common Voice recordings accepted or rejected by volunteer validators.
- English sentence prosody correlates less well with expert scores than Azure's (0.772 against 0.827).
- At the default strictness, about 3% of a native speaker's words score below 0.6, against about 2% for Azure, in English, Japanese, Spanish and Portuguese.
- In Mandarin, a low tone probability on one syllable does not always lower the word probability. Applications that grade tones should read
syllable.tone_probdirectly. - Coaching tips were tuned on English and Mandarin learners. On native FLEURS recordings, between 9% and 43% of sentences (depending on language) still receive at least one pronunciation tip.
- Italian geminate consonants and Portuguese nasal vowels are detected poorly. Japanese pitch accent is not scored. Details are in results/contrast_audit.md.
- The reference text is required. For spontaneous speech, transcribe first and pass the transcript.
- There are no iOS, Android or WebAssembly builds.
Reproducing the benchmarks
pip install -e ".[all,bench]"
python -m bench.azure_pa run speechocean762 --split test # needs AZURE_SPEECH_KEY and AZURE_SPEECH_REGION
python -m bench.eval_english # speechocean762, L2-ARCTIC, EpaDB
python -m bench.eval_languages # FLEURS tests in ten languages
python -m bench.scoreboard # regenerates results/SCOREBOARD.md
The corpora are public. Azure's responses are not redistributed, so the comparison needs an Azure Speech resource. bench.azure_pa sends each recording once and caches the response under ~/.cache/pronunciada/azure. Download instructions, the remaining commands and run times are in docs/benchmarks_data.md.
Development
Pronunciada was written at Moglearn for a language-learning application. No large model was trained. The system combines an existing phone recognizer with lattice-based scoring, per-language phonology and small calibration models.
Development ran in rounds. Each round set a target in advance, selected changes on development data and was evaluated once on held-out data. Most of the implementation was done by an AI coding agent under human direction. The write-ups for all rounds are in results/, including approaches that were tried and dropped: Japanese pitch accent, a second acoustic model, and training on synthetic speech.
License
The code is licensed under Apache-2.0. ZIPA is licensed under CC BY 4.0 and is downloaded at first use. The Italian, Portuguese and Russian pronunciation dictionaries are derived from Wiktionary and remain under CC BY-SA. docs/LICENSING.md and NOTICE list every data file with the corpus it was fitted on and its license.
Azure is a trademark of Microsoft. This project is not affiliated with or endorsed by Microsoft.
Citation
See CITATION.cff.
Acknowledgements
This project depends on ZIPA (Zhu et al., ACL 2025) and was evaluated on speechocean762, OMPAL, FLEURS, Common Voice, L2-ARCTIC, EpaDB and AISHELL.
Metadata
Release files for pronunciada 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pronunciada-1.0.0.tar.gz | 19.0 MB | With provenance | Details for pronunciada-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pronunciada-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pronunciada-1.0.0-py3-none-any.whl |
Total release size: 38.0 MB
Release files / pronunciada-1.0.0.tar.gz
| Download URL | pronunciada-1.0.0.tar.gz |
|---|---|
| Size | 19.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be1d5e52b91fd5a2a3da98d65da226b1f3eaf1b2fdf5ebe008b5d7f214f1d0ad
|
|
BLAKE2b-256 checksum How to use checksums |
7a3eca069716f40eb0ec733b8a6e25cc36e8ad2a53e8ee56bbe8873af896481d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / pronunciada-1.0.0-py3-none-any.whl
| Download URL | pronunciada-1.0.0-py3-none-any.whl |
|---|---|
| Size | 19.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3913a2d6b25159acf8f08d8a0b9df87ffadde4aa1e4bb8b7711c12f682981ff
|
|
BLAKE2b-256 checksum How to use checksums |
344966c61e161f0b88545c2c90e0c33e3018268b182218a116366427d7300c56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for pronunciada 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pronunciada-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.