pronunciada

mcp
Guvenlik Denetimi
Gecti
Health Gecti
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 34 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

State-of-the-art pronunciation assessment in a 52 MB model. Open source, 10 languages, runs on the device.

README.md

Pronunciada: state-of-the-art pronunciation assessment in a 52 MB model. The waveform of a learner saying 'It was a beautiful day for a float', cut at the word boundaries, with the probability given to each word.

Pronunciada

State-of-the-art pronunciation assessment in a 52 MB model.
Open source · 10 languages · runs on the device

PyPI version Python versions CI License: Apache-2.0

Website · Benchmarks · Quick start · How it works · PyPI · Hugging Face

Pronunciada listens to someone read a sentence and scores each sound, each word and the whole sentence. It works in 10 languages and runs on the learner's own device from a 52 MB model. It needs no GPU and no network. In 163 comparisons with Azure and four other systems on recordings of real learners, it was significantly better in 119 and significantly worse in none.

Key figures: 119 significant wins and no significant loss against five other systems, 10 languages, a 52 MB model, 61 ms per sentence on a laptop CPU.

https://github.com/user-attachments/assets/b8641ae2-621a-49da-9b09-d404ec9887eb

119 better, 44 level, 0 worse

Pronunciada, Microsoft Azure Pronunciation Assessment, OpenPronounce, Lingolix, TonePerfect and Chivox scored the same recordings of language learners, and each system's scores were compared with the judgement of experts and teachers. That gives 163 comparisons, each of one system on one measure of one test. No system is significantly better than Pronunciada in any of them.

Head-to-head with every system tested. Significantly ahead, no significant difference, significantly behind: OpenPronounce 37, 21, 0. Azure 22, 7, 0. OpenPronounce distilled 19, 8, 0. TonePerfect 14, 5, 0. Chivox 17, 1, 0. Lingolix 10, 2, 0.

Taken together, Pronunciada's overall score is significantly higher than every other system's.

Overall score on real learner speech, Pronunciada and each other system on the tests both ran. OpenPronounce 0.845 and 0.674, OpenPronounce distilled 0.854 and 0.828, Azure 0.788 and 0.681, Lingolix 0.801 and 0.682, TonePerfect 0.788 and 0.693, Chivox 0.808 and 0.676. Every difference is significant.

Recordings of learners graded by experts are public for only a few languages. To cover all 10, Pronunciada was also compared with Azure, the cloud service most language-learning apps use, on 84 public tests with the same recordings and text given to both. Pronunciada is significantly better on 55 of them and Azure on none.

Head-to-head comparisons with Azure by language. Significantly ahead, no significant difference, significantly behind: English 14, 5, 0. Mandarin 7, 9, 0. Japanese 4, 2, 0. Spanish 4, 2, 0. French 5, 1, 0. German 6, 1, 0. Italian 4, 2, 0. Portuguese 4, 2, 0. Russian 4, 2, 0. Korean 3, 3, 0.

One of those tests runs the same way in all 10 languages. A native recording is scored against a text in which one word was replaced by a word one sound away, and the system has to notice the mismatch.

Changed-word detection in 10 languages, Pronunciada and Azure. English 0.984 and 0.963, Mandarin 0.980 and 0.966, Japanese 0.976 and 0.919, Spanish 0.995 and 0.942, French 0.989 and 0.937, German 0.980 and 0.887, Italian 0.983 and 0.970, Portuguese 0.970 and 0.938, Russian 0.914 and 0.909, Korean 0.973 and 0.937.

The benchmark page has every test on real learner speech with its confidence interval. It also says what the tests do not show. The scoreboard has the 84 tests against Azure, which was called through its REST API (region westus) in November 2026 and was not tuned on any of this data.

52 MB, 61 ms, no server

A 3.4-second sentence is scored in 61 ms on an Apple M3 Pro with four CPU threads and in 126 ms with one. An 11-second recording took half a second in a phone's browser. No server is involved and the recording never leaves the device.

61 ms per sentence on a laptop CPU, 22 times faster than real time on an iPhone in the browser, 0 bytes of audio leave the device.

Everything Pronunciada loads fits in 90 MB and it uses about 0.3 GB of memory. OpenPronounce, the other open system tested, needs 4 to 29 times the disk space and 4 to 12 times the memory.

What each open system needs to run. Pronunciada: 90 MB on disk, 0.33 GB of memory, 61 ms per sentence. OpenPronounce distilled: 396 MB, 1.43 GB, 131 ms. OpenPronounce: 2,603 MB, 3.88 GB, 707 ms.

The 52 MB model is a compressed copy of the 260 MB ZIPA model and scores the same. Its overall score is 0.831 and the full model's is 0.830 (how it was made and tested). A request to Azure for a nine-second sentence took about two seconds. Pronunciada scored a sentence of that length in 0.36 s on one CPU thread.

Time to score a 9-second recording: Pronunciada 0.36 s on the laptop with one CPU thread, Azure 2.34 s for the request to the cloud and back.

What you get back

pip install pronunciada
pronunciada check clip.wav "It was a beautiful day for a float" --lang en

The command above running in a terminal and printing the scores for each word and sound.

Output as text
~ Close  sentence 75% · accuracy 7.8/10 · fluency 8.6/10   en · strictness 0.5

  It was a beautiful day for a float
           ~~~~~~~~~         ~ ^^^^^

  beautiful  64%  b 92%  j 57%  u 62%  t 54%  [ə 53%]  f 83%  ə 63%  [l̴ 60%]
  a          78%  [ɪ 56%]
  float       9%  [f 84%]  [l 26%]  [oʊ 35%]  t 57%

  → Let the air pass along the sides of the tongue for /l/ in “float”.

The recording is a learner from the speechocean762 test set (en-learner-1.mp3). The corpus annotators marked the /l/ of "float" as dropped, and Pronunciada gives that word 0.09.

The same call from Python:

import pronunciada

result = pronunciada.score("clip.wav", "It was a beautiful day for a float", lang="en")

result.prob                # 0.75, the sentence
result.words[7].prob       # 0.09, the word "float"
result.words[7].phones     # f 0.84, l 0.26, oʊ 0.35, t 0.57
result.coaching()          # what to fix, most important first

You give it a recording and the text the speaker was reading. It returns the probability, from 0 to 1, that a human rater would accept each sound, each word and the sentence. The model is downloaded on first use.

10 languages

English, Chinese, Japanese, Spanish, French, German, Italian, Portuguese, Russian and Korean, each written in its own script.

Language Code Install Also scored
English en pronunciada word stress
Mandarin, Simplified and Traditional zh pronunciada[zh] tone of each syllable, a score for each character, 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.

Use it

To score more than one recording, create a Scorer once:

from pronunciada import Scorer

scorer = Scorer("zh")                    # precision="fp32" loads the full 260 MB model instead
result = scorer.score("clip.wav", "我家有四口人")

Besides the probabilities, a result has the timing of every sound and word, fluency and completeness scores, how native the speaker sounds (result.nativeness), the tone heard on each Mandarin syllable and a score for each Mandarin character, and warnings when a recording is clipped, noisy or mostly silence. result.coaching() lists the detected errors, and pronunciada.tips.tips() turns them into short advice for the learner (docs/COACHING.md). result.contrast(word, sound, against="i") checks whether the speaker said the expected sound or the named one. A minimal-pair drill such as "ship" and "sheep" needs that check (results). docs/PRACTICE_LOOP.md shows how to build practice on top of the scores. It finds the weakest sound, plays the learner's word next to a model recording and scores the retry. The strictness setting, from 0 to 1, makes every score more lenient or more strict.

Pronunciada also runs outside Python:

Command line pronunciada check clip.wav "Buenos días" --lang es docs/CLI.md
Local HTTP server pronunciada serve --port 8765 docs/SERVER.md
In place of Azure pronunciada serve --azure-compat answers in Azure's JSON layout docs/AZURE_COMPAT.md
MCP server pip install "pronunciada[mcp]", then pronunciada mcp docs/MCP.md
Browser, C and C++ the scoring core in C++, with a WebAssembly build; it gives the Python package's numbers in all 10 languages cpp/, results
NVIDIA GPU Scorer(..., device="cuda") or --device cuda docs/GPU.md

How it works

How it works. Audio goes to the ZIPA speech model, which is frozen, then through Pronunciada's adapter, lattice scoring and calibration to the scores. The text goes through a lexicon into the lattice scoring, and prosody heads read from ZIPA into the calibration.

Pronunciada does not retrain a speech model. ZIPA, an open phone recognizer, is used exactly as released for all 10 languages. It listens to the recording and reports the sounds it hears. It never sees the text.

Everything Pronunciada adds sits around ZIPA and comes to 36 MB. A dictionary and the sound rules of each language turn the text into the sounds a speaker should produce. A small adapter corrects ZIPA's habits in each language. For every expected sound, the scorer weighs three explanations: it was said, it was replaced by another sound, or it was dropped. Calibration models fitted on expert-scored speech turn that evidence into the probabilities you get back. Separate small models read tone, stress and length from ZIPA's inner layers.

Our breakthroughs
  1. The speech model is never retrained. ZIPA runs exactly as its authors released it and the same weights serve all 10 languages. On the overall test of real learner speech it scores 0.621 on its own and 0.831 with Pronunciada around it.
  2. The text side runs on rules. A dictionary and the sound rules of each language say which sounds a sentence calls for and which alternatives a native speaker may use. No neural network is involved, so every expected sound can be traced to a dictionary entry or a rule.
  3. Every sound gets three explanations. The standard method only asks how well the expected sound fits. Pronunciada also asks whether another sound fits better and whether the sound is missing. The 0.621 above is ZIPA with the standard method.
  4. Known mistakes are planted in native speech. Recordings of learners marked by experts exist for only a few languages. For the other languages a native recording is scored against a text with one word changed, so the place of the mistake is known. That made it possible to fit and test all 10 languages.
  5. Tone and stress come from a model that has no symbols for them. ZIPA only writes down sounds. Small models read tone, stress and length from its inner layers and from the pitch of the voice.
  6. The model shrank to a fifth of its size and kept its scores. The 260 MB speech model is stored in 52 MB by keeping its weights in 4 and 8 bits. The overall score is 0.831 for the small model and 0.830 for the full one.

The design is described in docs/DESIGN.md.

What it does not do

  • The text being read is required. For free speech, transcribe first and pass the transcript.
  • The tests on recordings of real learners cover 6 of the 10 languages: English, Mandarin, Spanish, German, French and Italian. For Japanese, Korean, Portuguese and Russian the evidence is native speech with altered text and Common Voice recordings judged by volunteers.
  • The benchmarks compare complete pronunciation-assessment systems: libraries, apps and cloud services. Research models built for a single task were not run, and neither were other commercial services such as SpeechSuper, Speechace and ELSA.
  • A native English speaker's words are marked down a little more often than by Azure. 2.7% of them score below 0.6 and Azure's figure is 2.2%. The difference is not statistically significant.
  • Coaching tips still appear on 9% to 38% of native speakers' sentences. The share depends on the language.
  • Italian double consonants and Portuguese nasal vowels are detected poorly, and Japanese pitch accent is not scored (results/contrast_audit.md).
  • There are no packaged iOS or Android libraries yet. The C++ core has been run on macOS and in desktop and phone browsers.
  • The default model needs ONNX Runtime 1.23 or newer and has been tested on the CPU only. On a GPU, Pronunciada loads the full 260 MB model.

About

Pronunciada was written at Moglearn, a language-learning app that wanted to score pronunciation on the learner's device instead of sending recordings to a cloud service. Every development round is written up in results/ and the write-ups include the approaches that were tried and dropped. The steps to reproduce the benchmarks are in docs/benchmarks_data.md. The comparison needs an Azure Speech resource because Azure's responses are not redistributed.

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. Pronunciada depends on ZIPA (Zhu et al., ACL 2025) and was evaluated on speechocean762, OMPAL, FLEURS, Common Voice, L2-ARCTIC, EpaDB, AISHELL, Heroico, LeaP and the Speech Accent Archive.

Yorumlar (0)

Sonuc bulunamadi