1
---
2
name: speak-summary
3
description: 'Convert text, markdown, or a summary produced by another skill into a listenable MP3 using local CPU-only neural text-to-speech. Rewrites written prose for the ear before synthesising. Use when the user asks to "read this out", "turn this into audio", "make an MP3", "I want to listen to this", "podcast version", or wants a spoken digest for a commute or breakfast.'
4
---
5
6
# Speak Summary
7
8
Turn written text into audio someone will actually want to listen to.
9
10
This skill is deliberately a **terminal step in a chain**. Another skill (or you)
11
produces the text; this one makes it listenable. It pairs naturally with
12
`roundup`, `daily-prep`, `meeting-minutes`, or any summarisation work.
13
14
Everything runs locally on CPU. No text is sent to a cloud speech service, which
15
matters when the content is confidential, and it means the skill works in a
16
headless cloud agent or CI container just as well as on a laptop.
17
18
## Prerequisites
19
20
The synthesis engine is [Kyutai `pocket-tts`](https://github.com/kyutai-labs/pocket-tts),
21
a small neural TTS model designed to run on CPUs.
22
23
The bundled script installs it automatically into a cached virtualenv on first
24
use, so usually you need do nothing. To install it explicitly:
25
26
```bash
27
pip install pocket-tts # any platform
28
brew install pocket-tts # macOS, if preferred
29
```
30
31
`pocket-tts` requires **Python >=3.10 and <3.15**. The script searches for a
32
compatible interpreter rather than assuming `python3` is one — worth knowing if
33
you are on a very new Python, where installation would otherwise fail.
34
35
You also need an encoder. `ffmpeg` is strongly preferred (`brew install ffmpeg`
36
or `apt-get install -y ffmpeg`); on macOS the script falls back to the built-in
37
`afconvert` and emits `.m4a` instead of `.mp3`.
38
39
The first run downloads the model (~1GB) from Hugging Face. After that it is
40
fully offline and synthesises roughly 6x faster than real-time.
41
42
## The important step: rewrite for the ear
43
44
**Do not feed written text straight into the synthesiser.** Prose that reads well
45
on screen is tiring to listen to. Rewriting it first is what separates a useful
46
audio digest from an unlistenable one.
47
48
Produce a spoken script that:
49
50
- **Opens with orientation.** What this is, what it covers, roughly how long it runs.
51
- **Replaces bullets with connective prose.** "First… The bigger one is… Finally…" — a listener has no visual structure to lean on, so carry it in the language.
52
- **Expands abbreviations on first use.** "PR" becomes "pull request", "CI" becomes "continuous integration". Acronyms that read fine are noise when spoken.
53
- **Speaks dates and numbers naturally.** "the twentieth of August", not "2026-08-20". "About three thousand", not "2,847".
54
- **Never reads URLs aloud.** Say "linked in the written version" instead.
55
- **Uses short sentences.** Split anything past roughly 25 words.
56
- **Signposts transitions.** "Turning to the product side…", "Two things need your attention…".
57
- **Ends with the actions.** Recap what the listener should do, since that is what they need to retain and they cannot scroll back.
58
- **Drops anything purely visual.** Tables, code blocks, and diagrams should be summarised in a sentence or omitted, never read out.
59
60
Write this spoken script to its own `.txt` file. Keep the original written
61
version with its links intact — the audio is a companion to it, not a
62
replacement. The user will want to click through later.
63
64
## Synthesise
65
66
```bash
67
./scripts/tts.sh <input.txt> <output.mp3> [voice.safetensors]
68
```
69
70
The script strips any residual markdown, splits the text on sentence boundaries
71
into ~600 character chunks (quality degrades on long single inputs), synthesises
72
each chunk, and concatenates the result into a mono MP3 at 96kbps — small enough
73
to sync to a phone, good enough for speech.
74
75
Environment overrides:
76
77
| Variable | Purpose |
78
|---|---|
79
| `SPEAK_TTS_BIN` | Path to a specific `pocket-tts` binary; skips all auto-detection. |
80
| `SPEAK_TTS_HOME` | Where to create/find the cached virtualenv. Default `~/.cache/speak-summary/venv`. |
81
82
## Voices
83
84
The default English voice is `alba`. To use a different one, `pocket-tts`
85
supports voice cloning from a short clean audio sample:
86
87
```bash
88
pocket-tts export-voice --help
89
```
90
91
Pass the resulting `.safetensors` file as the third argument to the script.
92
93
Only clone a voice you have the rights to use. Do not clone a real person's
94
voice — colleague, customer, or public figure — without their explicit consent.
95
96
## Output
97
98
- Default to `~/Music/Briefings/` unless the user says otherwise; it is easy to point a phone or podcast app at.
99
- Name files `<subject>-<YYYY-MM-DD>.mp3`.
100
- Report the path, duration, and size.
101
- Offer to play it: `afplay <path>` on macOS, `ffplay -nodisp -autoexit <path>` elsewhere.
102
103
## Length guidance
104
105
Aim for 4–6 minutes for a routine digest, which is roughly 600–900 spoken words
106
at a natural pace. If the source would run past about 10 minutes, say so and
107
offer either a tighter edit or a split into multiple files — attention drops off
108
sharply beyond that for informational audio.
109
110
## Chaining onto other skills
111
112
The natural pattern is *gather → summarise → speak*:
113
114
- `roundup` → `speak-summary` — a spoken version of the status briefing.
115
- `daily-prep` → `speak-summary` — tomorrow's schedule, listened to tonight.
116
- `meeting-minutes` → `speak-summary` — catch up on a meeting you missed.
117
118
When invoked as part of a chain, do not re-summarise. The upstream skill owns
119
what to say; this skill owns how it sounds. Take its output, rewrite it for the
120
ear, and synthesise.
121
122
To run unattended (a briefing waiting before breakfast), schedule the upstream
123
skill with a workflow and have it finish by calling this one.
124
125
## Troubleshooting
126
127
**Audio cuts off mid-sentence.** A chunk exceeded the model's comfortable length.
128
Shorten the sentences in the spoken script.
129
130
**Words mispronounced.** Spell them phonetically in the input — "Kubernetes" as
131
"koo-ber-net-eez". This is a normal part of preparing a spoken script.
132
133
**First run is slow.** That is the one-off model download. Later runs start in
134
about a second.
135
136
**`pocket-tts` not found after install.** The virtualenv may be stale, or your
137
`python3` may be outside the supported 3.10–3.14 range. Delete
138
`~/.cache/speak-summary/venv` and re-run, or point `SPEAK_TTS_BIN` at a known binary.
139