explain-aloud
To tackle the Wall Of Text problem, we've implemented a Claude Code plugin that explains replies aloud like a teacher instead of
reading them verbatim.
After each qualifying reply, a cheap model (claude -p --model haiku, your subscription) rewrites it into a spoken explanation —
self-sufficient enough to act on without reading, pointing at tables instead
of reciting them, unpacking terse jargon — and plays it through local TTS.
Built on top of the read-aloud
plugin's MIT-licensed TTS core (vendored): Kokoro local neural voice, chunked
low-latency playback. read-aloud stays the place you pick your voice.
Install (2 minutes)
Ai2 folks — one click: add it from the organization's plugin library:
https://claude.ai/customize/plugins/plugin_011ivn4eUzgHgcuSf4ebXSfw
(or in Claude Code: /plugin → Marketplaces → add the organization library →
/plugin install explain-aloud@claudeai-organization-library).
From GitHub instead, in any Claude Code session (desktop app or CLI):
/plugin marketplace add allenai/explain-aloud
/plugin install explain-aloud@explain-aloud
Either way, finish with:
/read-aloud:voice-setup
That installs the free local neural voice (~340MB one-time download) via the
read-aloud plugin — install that first from the plugin directory if you don't
have it (/plugin install read-aloud). Optionally sudo apt install mpv to
enable pause/resume/rewind and the live progress percentage. Restart Claude
Code.
Use
/explain-aloud:explain — speak a teacher-style explanation of the last
reply. Generation takes ~15–40s, then audio starts.
- Button lane (desktop app and terminal) — a slim row above the prompt box:
🎙️ Explain · « ● » · ⏪ 5s · ⏸ Pause · ⏹ Stop, plus a live status at the end of the
row:
🧠 writing script… 12s while the model works, 🔊 64% during
playback. Buttons that don't apply to the current phase are dimmed and
inert, so the row never changes shape.
- Explaining an earlier reply — when a short follow-up ("ran it, done")
sits after the reply you actually care about, press « to step back
(2nd-last, 3rd-last … down to the session's first reply), » to step
forward, ● to jump back to the last reply, then Explain; or run
/explain-aloud:explain 2. The target resets to the last reply after each
Explain. Slash commands and their output never count as replies.
- Sending a new prompt — or closing the session — cancels any pending or
playing explanation.
- Pressing Explain again on the same message replays instantly from a local
cache — no model call, no extra cloud-voice credits.
- Default mode is on-demand (
off); /explain-aloud:mode always|auto makes it
speak after every / after long replies.
- Default voice comes from read-aloud's config (
af_heart if you followed the
setup); change it with /read-aloud:voice.
Installing from a local checkout instead: /plugin marketplace add <path-to-repo>.
Requirements:
- Linux, Python 3.9+ (stdlib only at runtime).
- The read-aloud plugin's Kokoro voice installed (
/read-aloud:voice-setup)
— or any provider configured there; system voice works out of the box.
claude CLI on PATH (used headless for script generation).
mpv (optional) — enables pause / resume / seek-back and the playback
percentage. Without it audio still plays through aplay/paplay, just without
controls.
read-aloud's auto_read must stay off — explain-aloud detects it and
skips speaking rather than letting two voices race.
Commands
| Command | Does |
|---|
/explain-aloud:explain [N] | explain the last reply now; N = the Nth-last (2 = the one before the last) |
/explain-aloud:mode always|auto|off | when to speak (default: off = on-demand) |
/explain-aloud:model haiku|sonnet|opus | which model writes the explanation (default haiku; bigger = better, slower) |
/explain-aloud:context N | how many earlier thread messages feed the explanation (default 6, 0 = none) |
/explain-aloud:language L | speak explanations in another language, e.g. hebrew (english resets) |
/explain-aloud:status | current config + warnings |
/explain-aloud:stop | stop/cancel current explanation |
/explain-aloud:pause / resume | pause / resume (needs mpv) |
/explain-aloud:back [s] | seek back, default 5s (needs mpv) |
Config
~/.config/explain-aloud/config.json (all optional):