ElevenLabs 文本转语音
sag
使用 ElevenLabs 进行文本转语音,提供 Mac 风格 say 命令般的用户体验。
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 54
- Forks
- 46
01 前言 Front Matter
- name
- sag
- homepage
- https://sag.sh
- metadata
- { "openclaw": { "emoji": "?", "install": [ { "id": "brew", "bins": [ "sag" ], "kind": "brew", "label": "Install sag (brew)", "formula": "steipete/tap/sag" } ], "requires": { "bins": [ "sag" ] }, "primaryEnv": "ELEVENLABS_API_KEY" } }
- description
- ElevenLabs text-to-speech with mac-style say UX.
03 SKILL.md 正文
sag
Use sag for ElevenLabs TTS with local playback.
API key (required)
ELEVENLABS_API_KEY(preferred)SAG_API_KEYalso supported by the CLI- Key file via
--api-key-file,ELEVENLABS_API_KEY_FILE, orSAG_API_KEY_FILE
Quick start
sag "Hello there"sag speak -v "Roger" "Hello"sag voicessag prompting(model-specific tips)
Model notes
- Default:
eleven_v3(expressive) - Stable:
eleven_multilingual_v2 - Fast:
eleven_flash_v2_5
Pronunciation + delivery rules
- First fix: respell (e.g. "key-note"), add hyphens, adjust casing.
- Numbers/units/URLs:
--normalize auto(oroffif it harms names). - Language bias:
--lang en|de|fr|...to guide normalization. - v3: SSML
<break>not supported; use[pause],[short pause],[long pause]. - v2/v2.5: SSML
<break time="1.5s" />supported;<phoneme>not exposed insag.
v3 audio tags (put at the entrance of a line)
[whispers],[shouts],[sings][laughs],[starts laughing],[sighs],[exhales][sarcastic],[curious],[excited],[crying],[mischievously]- Example:
sag "[whispers] keep this quiet. [short pause] ok?"
Voice defaults
ELEVENLABS_VOICE_IDorSAG_VOICE_ID
Confirm voice + speaker before long output.
Chat voice responses
When the user asks for a "voice" reply (e.g., "crazy scientist voice", "explain in voice"), generate audio and send it:
# Generate audio file
sag -v Clawd -o /tmp/voice-reply.mp3 "Your message here"
# Then include in reply:
# MEDIA:/tmp/voice-reply.mp3
Voice character tips:
- Crazy scientist: Use
[excited]tags, dramatic pauses[short pause], vary intensity - Calm: Use
[whispers]or slower pacing - Dramatic: Use
[sings]or[shouts]sparingly
Default voice for Clawd: lj2rcrvANS3gaWWnczSX (or just -v Clawd)
04 同仓库更多 Skills
WhatsApp 桌面归档管理与检索
wacrawl
wacrawl:WhatsApp Desktop 归档的导入/搜索、切片、备份以及仓库/发布相关工作。
WhatsApp 消息发送与历史检索
wacli
通过 wacli 发送第三方 WhatsApp 消息,或同步/搜索 WhatsApp 历史记录,不用于正常的活跃聊天。
多源内容摘要与转录
summarize
总结或转录 URL、YouTube/视频、播客、文章、文字稿、PDF 和本地文件。
Sonos 音箱控制
sonoscli
控制 Sonos 音箱(发现/状态/播放/音量/分组)。
Markdown 知识库搜索
qmd
使用 QMD 搜索 Markdown 知识库、笔记和文档。当用户要求搜索笔记、查找文档或查询信息时使用。
文件监听与自动重建
poltergeist
适用于任何语言或构建系统的文件监视器,支持自动重新构建。