speak-summary
它能做什么
可以把文字转换成可以收听的 MP3 音频。在生成音频之前,它会先改写文字,使朗读起来更自然,全部过程都在你自己的电脑上完成。
适用场景
- ✓当你想听一段长文字的摘要时。
- ✓当你想把一份文档做成音频版本时。
- ✓当你想把新闻或资讯做成属于自己的“播客”时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/speak-summary/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把这篇文章转成音频,我想在通勤路上听。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会先调整文字,使其更适合朗读,例如拆分过长的句子,并解释缩写词。然后,它会调用你电脑上的一个程序,把调整后的文字转换成 MP3 音频文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Speak Summary
Turn written text into audio someone will actually want to listen to.
This skill is deliberately a terminal step in a chain. Another skill (or you)
produces the text; this one makes it listenable. It pairs naturally with
roundup, daily-prep, meeting-minutes, or any summarisation work.
Everything runs locally on CPU. No text is sent to a cloud speech service, which matters when the content is confidential, and it means the skill works in a headless cloud agent or CI container just as well as on a laptop.
Prerequisites
The synthesis engine is Kyutai pocket-tts,
a small neural TTS model designed to run on CPUs.
The bundled script installs it automatically into a cached virtualenv on first use, so usually you need do nothing. To install it explicitly:
pip install pocket-tts # any platform
brew install pocket-tts # macOS, if preferred
pocket-tts requires Python >=3.10 and <3.15. The script searches for a
compatible interpreter rather than assuming python3 is one — worth knowing if
you are on a very new Python, where installation would otherwise fail.
You also need an encoder. ffmpeg is strongly preferred (brew install ffmpeg
or apt-get install -y ffmpeg); on macOS the script falls back to the built-in
afconvert and emits .m4a instead of .mp3.
The first run downloads the model (~1GB) from Hugging Face. After that it is fully offline and synthesises roughly 6x faster than real-time.
The important step: rewrite for the ear
Do not feed written text straight into the synthesiser. Prose that reads well on screen is tiring to listen to. Rewriting it first is what separates a useful audio digest from an unlistenable one.
Produce a spoken script that:
- Opens with orientation. What this is, what it covers, roughly how long it runs.
- 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.
- Expands abbreviations on first use. "PR" becomes "pull request", "CI" becomes "continuous integration". Acronyms that read fine are noise when spoken.
- Speaks dates and numbers naturally. "the twentieth of August", not "2026-08-20". "About three thousand", not "2,847".
- Never reads URLs aloud. Say "linked in the written version" instead.
- Uses short sentences. Split anything past roughly 25 words.
- Signposts transitions. "Turning to the product side…", "Two things need your attention…".
- Ends with the actions. Recap what the listener should do, since that is what they need to retain and they cannot scroll back.
- Drops anything purely visual. Tables, code blocks, and diagrams should be summarised in a sentence or omitted, never read out.
Write this spoken script to its own .txt file. Keep the original written
version with its links intact — the audio is a companion to it, not a
replacement. The user will want to click through later.
Synthesise
./scripts/tts.sh <input.txt> <output.mp3> [voice.safetensors]
The script strips any residual markdown, splits the text on sentence boundaries into ~600 character chunks (quality degrades on long single inputs), synthesises each chunk, and concatenates the result into a mono MP3 at 96kbps — small enough to sync to a phone, good enough for speech.
Environment overrides:
| Variable | Purpose |
|---|---|
SPEAK_TTS_BIN |
Path to a specific pocket-tts binary; skips all auto-detection. |
SPEAK_TTS_HOME |
Where to create/find the cached virtualenv. Default ~/.cache/speak-summary/venv. |
Voices
The default English voice is alba. To use a different one, pocket-tts
supports voice cloning from a short clean audio sample:
pocket-tts export-voice --help
Pass the resulting .safetensors file as the third argument to the script.
Only clone a voice you have the rights to use. Do not clone a real person's voice — colleague, customer, or public figure — without their explicit consent.
Output
- Default to
~/Music/Briefings/unless the user says otherwise; it is easy to point a phone or podcast app at. - Name files
<subject>-<YYYY-MM-DD>.mp3. - Report the path, duration, and size.
- Offer to play it:
afplay <path>on macOS,ffplay -nodisp -autoexit <path>elsewhere.
Length guidance
Aim for 4–6 minutes for a routine digest, which is roughly 600–900 spoken words
…
常见问题
我需要付费使用任何云服务吗?
不需要。所有操作都在你自己的电脑上运行,只需要首次下载音频程序。
我可以选择声音吗?
可以。如果你有对应的语音文件,并且拥有使用它们的权利,就可以使用不同的声音。
如果音频在句子中间断掉怎么办?
这可能是因为原文的句子太长。你可以试着缩短要转换成音频的文字中的句子。
详情
作者的原始描述
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.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7429
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。