acps-pronunciation-coach
ACPs Pronunciation Coach is a multi-agent English pronunciation studio built on
ACPs and acps-sdk==2.1.0. It turns one spoken
attempt into three coordinated diagnoses and one deliberate-practice plan:
phoneme-level correction, prosody repair, and a model-audio shadowing protocol.
The name combines the collaboration protocol (ACPs), the training target (Pronunciation) and the delivery format (Coach): a coaching board whose members speak the same Agent Interaction Protocol instead of a single monolithic scoring model.
Why multi-agent?
Pronunciation is not one problem. A learner can produce every consonant correctly
and still sound flat; another can have excellent intonation but substitute /θ/
with /s/. Splitting the work lets each specialist own one dimension and pass a
typed product to the next stage:
| Agent | Skill tag | Responsibility | Output |
|---|---|---|---|
| PhonemeAgent | phoneme-assessment |
IPA-aligns each word, isolates the offending vowel/consonant, classifies place, voicing, length or quality errors | PhonemeReport with minimal pairs and articulation cues |
| ProsodyAgent | prosody-coaching |
Measures rate, pitch range, stress placement, pause placement and final tone | ProsodyReport with thought groups and repair steps |
| ShadowingAgent | shadowing-coaching |
Renders a model-audio SSML timeline and a five-step shadowing loop from both diagnoses | ShadowingPlan with drills and pass criteria |
Typical deployment scenarios:
- IELTS / TOEFL speaking diagnostics where examiners ask "which sound exactly is wrong?".
- Keynote and media-interview delivery polishing for non-native speakers.
- Phoneme-focused accent reduction blocks inside corporate L&D programmes.
- Pronunciation clinics that need an auditable, repeatable feedback report.
Architecture
┌─────────────────────────────────────────────┐
│ PronunciationCoachSession (Leader, ACPs) │
│ discovers skills through ADP, drives AIP │
└──────────────┬──────────────────────────────┘
│ AIP v2 RPC (JSON-RPC over HTTP)
┌────────────────────────┼────────────────────────┐
▼ ▼ ▼
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ PhonemeAgent │ │ ProsodyAgent │ │ ShadowingAgent │
│ IPA alignment │ │ stress / rhythm │ │ model audio + │
│ minimal pairs │ │ intonation │ │ shadowing loop │
└────────┬────────┘ └────────┬────────┘ └────────┬────────┘
│ │ │
└─────────── parallel ──┘ │
PhonemeReport + ProsodyReport ───────▶┘
│
▼
weighted SessionReport + AIP trace
The Leader dispatches Phoneme and Prosody in parallel, waits for both products, then starts Shadowing with the two reports as its payload. Every agent is a real FastAPI service exposing the AIP RPC endpoint; the local mesh runs all three on loopback ports so the demo needs no broker or cloud credentials.
Quickstart
Python 3.10+ is required.
cd acps-pronunciation-coach
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS / Linux
source .venv/bin/activate
pip install -e ".[dev]"
If acps-sdk==2.1.0 is not available from your index yet, install the wheel first:
pip install /path/to/acps_sdk-2.1.0-py3-none-any.whl
pip install -e ".[dev]"
One-command demo
pronunciation-coach demo
# or, without installing the console script:
python -m pronunciation_coach demo
The demo starts three AIP agents, submits a simulated IELTS-style attempt, and prints the complete multi-agent report. No keyboard input or audio device is required.
Self-check
pronunciation-coach verify
Prints the Leader and partner AICs after validating them with acps_sdk.aic.
Example: what the board reports
Input attempt (simulated ASR plus forced alignment):
Target: I think this is a very good idea, and I would like to work on it with the team.
Recognised: I sink dis is a wery good idea, and I would like to walk on it with the team.
Duration: 5.2s -> 219 wpm
PhonemeAgent output (excerpt):
think /θ/ -> /s/ [place-of-articulation · major · 42]
音标: θɪŋk -> sɪŋk
要领: 舌尖轻触上齿边缘,让气流从舌齿缝隙摩擦而出;对着镜子应能看到舌尖。
最小对立: think /θɪŋk/ ↔ sink /sɪŋk/
very /v/ -> /w/ [place-of-articulation · major · 45]
work /ɜː/ -> /ɔː/ [vowel-quality · major · 40]
with /ð/ -> /θ/ [voicing · moderate · 58]
idea /ɪ/ -> /iː/ [vowel-length · moderate · 62]
ProsodyAgent output (excerpt):
Score 53/100 (rhythm 51 / stress 50 / intonation 58)
Rushed: 219 wpm, target 110-165
Monotone: pitch range 2.8 st, target >= 4.0
End tone: rising on a statement, target falling
Stress: function words "and", "to" carry the beat
ShadowingAgent output (excerpt):
Readiness 65/100
Model audio: en-US-AvaNeural, rate -10%, estimated 8.1s
Segments:
S1 [0.0s +3.4s] I think this is a very good idea,
S2 [3.4s +4.7s] and I would like to work on it with the team.
Steps:
1. 盲听建模 2. 拆句慢读 3. 同步影子跟读
4. 延迟影子跟读 5. 录音对比
Pass:
音素得分 -> >= 90; 语速 -> 110-165 wpm; 句末 -> falling
Leader output:
Phoneme 75 | Prosody 53 | Shadowing 65 | Overall 66
PhonemeAgent state=completed ~190ms
ProsodyAgent state=completed ~190ms (dispatched in parallel)
ShadowingAgent state=completed ~40ms (consumed both reports)
Build the wheel
python -m build
Artifacts are written to dist/:
dist/acps_pronunciation_coach-1.0.0-py3-none-any.whl
dist/acps_pronunciation_coach-1.0.0.tar.gz
Check the metadata and contents before publishing:
twine check dist/*
unzip -l dist/acps_pronunciation_coach-1.0.0-py3-none-any.whl
Publish to PyPI
Always rehearse on TestPyPI first:
# TestPyPI
twine upload --repository testpypi dist/*
pip install --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ acps-pronunciation-coach
# Production PyPI
twine upload dist/*
Use an API token instead of a password when prompted:
twine upload --username __token__ --password pypi-<YOUR_TOKEN> dist/*
~/.pypirc can store the token mapping:
[distutils]
index-servers =
pypi
testpypi
[pypi]
username = __token__
password = pypi-<PRODUCTION_TOKEN>
[testpypi]
repository = https://test.pypi.org/legacy/
username = __token__
password = pypi-<TEST_TOKEN>
Project layout
acps-pronunciation-coach/
├── pyproject.toml # build config, metadata, entry point
├── README.md
├── LICENSE
├── src/pronunciation_coach/
│ ├── __init__.py # public version and models
│ ├── __main__.py # python -m pronunciation_coach
│ ├── py.typed
│ ├── models.py # AIP payload schema (Pydantic v2)
│ ├── engine.py # IPA / prosody / shadowing knowledge
│ ├── identity.py # AIC + ACS builders
│ ├── registry.py # in-process ADP discovery service
│ ├── runtime.py # AIP RPC server, payload codecs
│ ├── mesh.py # starts the three partner agents
│ ├── leader.py # parallel task orchestration
│ ├── demo.py # scripted end-to-end session
│ ├── cli.py # pronunciation-coach entry point
│ └── agents/
│ ├── base.py # AIP lifecycle for every partner
│ ├── phoneme.py
│ ├── prosody.py
│ └── shadowing.py
└── tests/
└── test_end_to_end.py
Plugging in a real acoustic front end
PronunciationSample is the only contract the agents need. A production ASR or
forced aligner should emit:
word_scores: word, reference IPA, observed IPA, 0-100 accuracy;pitch_contour_st: normalised pitch track in semitones;pauses_sec: pause lengths inside the utterance;stressed_words: words the acoustic model marked as stressed.
The deterministic PronunciationEngine can then be replaced by an LLM or a
pronunciation-assessment API without touching the ACPs wiring.
Tests
pytest
The suite covers ADP discovery, the full three-agent AIP round trip, IPA error classification, prosody flags and the shadowing plan.
License
MIT. See LICENSE.
Metadata
Release files for acps-pronunciation-coach 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 |
|---|---|---|---|---|
| acps_pronunciation_coach-1.0.0.tar.gz | 37.7 kB | Without provenance | Details for acps_pronunciation_coach-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| acps_pronunciation_coach-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for acps_pronunciation_coach-1.0.0-py3-none-any.whl |
Total release size: 78.8 kB
Release files / acps_pronunciation_coach-1.0.0.tar.gz
| Download URL | acps_pronunciation_coach-1.0.0.tar.gz |
|---|---|
| Size | 37.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2bbfe35649737963daa9c5fe7b2aba2675a650c996e3328cb558d5e24c2efceb
|
|
BLAKE2b-256 checksum How to use checksums |
72688e4b1524600b5dd6b8d090f7d0959f3b1f2c9a1579bd3b8946ba354647fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / acps_pronunciation_coach-1.0.0-py3-none-any.whl
| Download URL | acps_pronunciation_coach-1.0.0-py3-none-any.whl |
|---|---|
| Size | 41.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63638b0a52eb05e140125c3863021b51bbb1c46f613f69ca8aebd1d0018dbcb9
|
|
BLAKE2b-256 checksum How to use checksums |
6e6039d88de624813b8cc039bf179c5f75c4efec202ee199e408d0475cbf475f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for acps-pronunciation-coach 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.