tts
它能做什么
这个技能让 AI 智能体把书面文字转换为语音音频,既可以直接播放,也可以保存为文件。适合希望听文字而不是阅读的人。
适用场景
- ✓当你想让电脑朗读一段文字的时候。
- ✓当你想把文档保存为音频文件以便收听的时候。
- ✓当你需要为短文字生成语音录音,且不使用在线服务的时候。
技能链接
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/tts/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这篇文章读给我听,或保存为音频文件,以便我之后收听?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用你电脑上自带的语音。它会把长文本分成若干部分,并报告音频文件的保存位置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Text to Speech
When to use
Reading text aloud or rendering speech audio files, using only the voices already on the machine.
Setup
No account or API key. Pick the platform command; fail loud when the
Linux engine is missing (sudo apt install speech-dispatcher or espeak-ng):
- macOS:
say -v Samantha -o out.aiff "text"(list voices:say -v '?') - Linux:
spd-say "text"orespeak-ng -w out.wav "text" - Windows: PowerShell
System.Speech.Synthesis.SpeechSynthesizer
Workflow
- Keep utterances short; split long text at paragraph breaks.
- Confirm voice and speed when the user cares; otherwise default voice, normal rate.
- For files, report the path, format, and duration.
Non-goals
- Do not clone voices or impersonate a real person.
- Do not call cloud TTS APIs (different cost and privacy posture — ask first).
- Do not play audio unprompted in shared environments; render a file instead.
常见问题
它会使用在线语音服务吗?
不会。技能只使用你机器上的语音,并在使用任何云服务之前先询问。
它能复制别人的声音吗?
不能。技能说明,它不克隆声音,也不冒充真人。
它会不经询问就播放声音吗?
不会。在共享场所,它会保存文件,而不会在未经提示的情况下播放音频。
详情
作者的原始描述
Speak or render text to speech locally. Use when: read aloud, speak, voice output, tts, text to speech, or an audio version of text.
repo: codewhale-hq/Codewhale
热度
- GitHub 星标
- 41k
- 排名
- #6558
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …