Piper TTS
/install beware-piper-tts
Piper TTS — Local Voice Messages
Generate voice messages using Piper, a fast local TTS engine. Zero cloud calls, zero cost, zero API keys.
Setup
If Piper is not installed, run the setup script:
scripts/setup-piper.sh
This installs piper-tts via pip and downloads a default voice (en_US-kusal-medium).
Generating Voice Messages
Use scripts/piper-speak.sh to generate and deliver voice:
scripts/piper-speak.sh "\x3Ctext>" [voice]
text: The text to speak (required)voice: Piper voice name (default:en_US-kusal-medium)
The script outputs an MP3 path. Include it in your reply as:
[[audio_as_voice]]
MEDIA:\x3Cpath-to-mp3>
This delivers the audio as a native voice message on supported channels (Telegram, Discord, etc.).
Example Workflow
- User asks: "Tell me a joke as audio"
- Run:
scripts/piper-speak.sh "Why do programmers prefer dark mode? Because light attracts bugs!" - Get MP3 path from output
- Reply with
[[audio_as_voice]]+MEDIA:\x3Cpath>
Available Voices
After setup, download additional voices:
scripts/setup-piper.sh --voice en_US-ryan-high
scripts/setup-piper.sh --voice en_GB-northern_english_male-medium
Popular voices:
en_US-kusal-medium— Clear male voice (default, recommended)en_US-ryan-high— High quality US maleen_US-hfc_male-medium— US maleen_GB-northern_english_male-medium— British male- Browse all: https://huggingface.co/rhasspy/piper-voices
Important Notes
- Speed: Local generation is ~0.5-1s. Much faster than cloud TTS.
- No API keys: Works completely offline after setup.
- Platform: macOS (Apple Silicon + Intel), Linux. Requires Python 3.9+.
- Do NOT set
messages.tts.auto: "always"in OpenClaw config — it makes every response slow. Keep TTS on-demand.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install beware-piper-tts - 安装完成后,直接呼叫该 Skill 的名称或使用
/beware-piper-tts触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Piper TTS 是什么?
Local text-to-speech using Piper for voice message delivery. Use when the user asks for voice responses, audio messages, TTS, text-to-speech, voice notes, or... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 843 次。
如何安装 Piper TTS?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install beware-piper-tts」即可一键安装,无需额外配置。
Piper TTS 是免费的吗?
是的,Piper TTS 完全免费(开源免费),可自由下载、安装和使用。
Piper TTS 支持哪些平台?
Piper TTS 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Piper TTS?
由 bewareofddog(@bewareofddog)开发并维护,当前版本 v1.0.1。