ACPs Listening Trainer
Protocol-native multi-agent intelligence for serious English dictation review.
acps-listening-trainer 1.0.0 is an intensive-listening review tool for learners who need more than a red mark and an aggregate score. It is designed for BBC and VOA news drills, TOEFL TPO lectures and conversations, IELTS listening practice, and any workflow where a learner submits a dictation after listening to audio.
Three specialists collaborate through acps-sdk 2.1.0: a Transcriber Agent aligns the submission with the reference transcript and separates omissions, substitutions and insertions; a Phonetics Agent turns error locations into testable hypotheses about linking, weak forms, elision and assimilation; and a Vocab Builder Agent converts missed words into an auditory blind-spot inventory with cloze and shadowing memory cards. A Leader discovers skills through ADP, dispatches AIP v2 tasks, validates structured products and returns one auditable review report.
The result is a deliberate post-listening loop: locate the failure → understand the sound pattern → rehearse the exact span → schedule another blind listen. It supports deliberate practice rather than replacing the learner with ASR.
Naming
acps-listening-trainer combines the ACPs agent-protocol stack with its single,
clear purpose: training English listening through dictation review. The
distribution uses hyphens (acps-listening-trainer); the Python import package
uses underscores (listening_trainer).
Why multiple agents?
| Concern | Single monolithic grader | Listening Trainer mesh |
|---|---|---|
| Alignment | often only a score | dedicated word-level edit product with accuracy and WER |
| Sound diagnosis | generic advice | error-grounded linking / weak-form / elision hypotheses |
| Retention | wrong-word list | contextual audio-first cards and 10-minute / 1 / 3 / 7-day review |
| Auditability | one opaque response | ACS capability, ADP discovery, AIP task id, state and latency per hop |
| Failure isolation | one prompt owns everything | typed request and product validation at every agent boundary |
The collaboration is real JSON-RPC, not three methods renamed as agents:
┌─> Phonetics Agent ───────┐
User dictation ─> Leader ────>│ ├─> ListeningReport
│ └─> Vocab Builder Agent ─────┘
│ ▲
└─> Transcriber Agent
│ structured TranscriptionReport
└───────────────> both downstream agents
The Transcriber runs first. Phonetics and Vocab Builder then run concurrently
with asyncio.gather, consuming the same validated TranscriptionReport.
Each partner is hosted at its own loopback /aip/v2/rpc endpoint by the demo;
the same ACS/AIP boundaries can be hosted remotely without changing the domain
models.
Audio honesty: the built-in engine analyses transcript alignment and known connected-speech rules. It does not claim to inspect acoustic features. Every phonetic diagnosis is explicitly labelled as a hypothesis to verify by replaying the source audio.
Project layout
acps-listening-trainer/
├── pyproject.toml
├── README.md
├── run_demo.py
├── src/listening_trainer/
│ ├── __init__.py
│ ├── __main__.py
│ ├── cli.py
│ ├── corpus.py
│ ├── demo.py
│ ├── identity.py
│ ├── leader.py
│ ├── mesh.py
│ ├── models.py
│ ├── registry.py
│ ├── report.py
│ ├── runtime.py
│ ├── py.typed
│ └── agents/
│ ├── base.py
│ ├── transcriber.py
│ ├── phonetics.py
│ └── vocab_builder.py
└── tests/test_end_to_end.py
Install
Python 3.10 or newer is required.
python -m venv .venv
# Windows PowerShell
.venv\Scripts\Activate.ps1
# macOS / Linux: source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
The runtime dependency is pinned with acps-sdk==2.1.0; FastAPI, uvicorn,
Pydantic and HTTPX support the local AIP services and typed payloads.
One-click demo
python run_demo.py
# equivalent after installation:
listening-trainer demo
# or:
python -m listening_trainer demo
The script starts all three agent services, submits the following deliberately imperfect dictation, performs the complete RPC workflow and prints the review:
Reference: The researchers picked up an old map and found a path to the village.
Attempt: The researchers picked a oh map and found a path the village.
Expected output includes dynamic ports, task ids and timings, followed by stable content similar to:
==============================================================================
ACPs Listening Trainer v1.0.0 · 英语听力精听多智能体协作
==============================================================================
[User] 提交听写文本:The researchers picked a oh map and found a path the village.
[Leader] Step 1/2:Transcriber Agent 执行词级对齐。
[Leader] Step 2/2:并行派发 Phonetics Agent 与 Vocab Builder Agent,随后汇总产物。
- 正确 / 原文:10 / 14 词
- 词级准确率:71.4%
- WER(越低越好):28.6%
- 差异总数:4
up | a | 辅元连读 | up an
an | oh | 功能词弱读 | an
old | (漏听) | 尾音失爆/吞音 | old map
to | (漏听) | 功能词弱读 | to
Vocab Builder:card-001 … card-004,含填空、跟读与间隔复习计划。
Use listening-trainer demo --json when another application needs the raw
ListeningReport instead of Markdown.
Review your own BBC / VOA / TPO dictation
Save the reference transcript and your dictation as UTF-8 files, then run:
listening-trainer review \
--reference-file reference.txt \
--attempt-file attempt.txt \
--title "TOEFL TPO Lecture 1" \
--source "TOEFL TPO"
Inline text is also supported:
listening-trainer review \
--reference "We picked up an old map." \
--attempt "We picked a old map." \
--title "VOA dictation · Lesson 01" \
--source "VOA"
No remote LLM key or audio upload is required for this deterministic baseline. Copyrighted transcripts remain on the user's machine and are not bundled with the package.
Use it as a library
import asyncio
from listening_trainer import ListeningSession, LocalAgentMesh
from listening_trainer.report import render_markdown
async def main() -> None:
with LocalAgentMesh() as mesh:
async with ListeningSession(mesh.registry) as session:
report = await session.review(
"We picked up an old map.",
"We picked a old map.",
title="Lesson 01",
source="VOA",
)
print(render_markdown(report))
asyncio.run(main())
Tests and static checks
pytest -q
ruff check .
The suite checks alignment metrics, all three required phonetic categories, memory-card generation, exact SDK pinning, ADP discovery and a complete three-agent AIP RPC round trip.
Build the wheel
python -m pip install --upgrade build twine
python -m build --wheel
python -m twine check dist/*
The resulting installable artifact is:
dist/acps_listening_trainer-1.0.0-py3-none-any.whl
To build both wheel and source distribution, use python -m build without
--wheel.
Publish to TestPyPI and PyPI
First rehearse with TestPyPI:
python -m twine upload --repository testpypi dist/*
Then publish the same validated artifacts to PyPI:
python -m twine upload dist/*
Use an API token when prompted: username __token__, password the full token
(including its pypi- prefix). A .pypirc file or the TWINE_USERNAME and
TWINE_PASSWORD environment variables can supply the same credentials without
putting them in shell history. PyPI versions are immutable: increment
[project].version and PROJECT_VERSION together before uploading a replacement.
Metadata
Release files for acps-listening-trainer 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| acps_listening_trainer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for acps_listening_trainer-1.0.0-py3-none-any.whl |
Release files / acps_listening_trainer-1.0.0-py3-none-any.whl
| Download URL | acps_listening_trainer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 31.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
868d572e08d0783a448c5e0589bb7c887414d3ed89ec82407828c9ab56e0d2b1
|
|
BLAKE2b-256 checksum How to use checksums |
84c7815a57685e50f810a8200900ec713d244074170b78a6239b297681e5b94e
|
| 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-listening-trainer 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.