Community程式設計與開發github.com

sag

使用 ElevenLabs TTS 實現文字轉語音,並具備類似 macOS say 指令的使用體驗。

sag 是什麼?

sag 是一個命令列工具,整合 ElevenLabs 的文字轉語音 (TTS) 服務,提供類似 macOS 原生 `say` 指令的直覺操作體驗。它支援多種語音模型,包括預設的 `eleven_v3`(具表現力)、穩定的 `eleven_multilingual_v2` 以及快速的 `eleven_flash_v2_5`,開發者可以根據需求選擇。API 金鑰可透過環境變數 `ELEVENLABS_API_KEY` 或 `SAG_API_KEY` 設定,也支援從檔案讀取。此外,sag 支援發音規則、語言偏差調整,以及 v3 模型的特殊音效標籤(如 `[whispers]`、`[shouts]`、`[sings]`),讓語音輸出更具變化。此工具特別適合需要在開發流程中快速生成語音回覆的場景,例如 AI 助理或自動化腳本,並且可以指定語音角色(如 "Clawd")來產生個性化的語音檔案。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/sag

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

sag 是做什麼的?

使用 sag 進行 ElevenLabs TTS 並在本機播放。

API 金鑰(必要)

  • ELEVENLABS_API_KEY(建議優先使用)
  • SAG_API_KEY CLI 也支援此環境變數
  • 從檔案讀取金鑰:--api-key-file、ELEVENLABS_API_KEY_FILE 或 SAG_API_KEY_FILE

快速開始

  • sag "Hello there"
  • sag speak -v "Roger" "Hello"
  • sag voices
  • sag prompting(特定模型的提示技巧)

模型說明

  • 預設:eleven_v3(具表現力)
  • 穩定:eleven_multilingual_v2
  • 快速:eleven_flash_v2_5

發音與語調規則

  • 首要修正:重新拼寫(例如 "key-note"),加入連字號,調整大小寫。
  • 數字/單位/網址:--normalize auto(若對名稱造成影響可設為 off)。
  • 語言偏好:--lang en|de|fr|... 來引導正規化。
  • v3:不支援 SSML <break>;請使用 [pause]、[short pause]、[long pause]。
  • v2/v2.5:支援 SSML <break time="1.5s" />;sag 未提供 <phoneme> 支援。

v3 音效標籤(放在行首)

  • [whispers]、[shouts]、[sings]
  • [laughs]、[starts laughing]、[sighs]、[exhales]
  • [sarcastic]、[curious]、[excited]、[crying]、[mischievously]
  • 範例:sag "[whispers] keep this quiet. [short pause] ok?"

語音預設值

  • ELEVENLABS_VOICE_ID 或 SAG_VOICE_ID

在長輸出前請先確認語音角色與說話者。

聊天語音回覆

當使用者要求「語音」回覆時(例如「瘋狂科學家的聲音」、「用語音解釋」),請產生音訊並傳送:

# 產生音訊檔案
sag -v Clawd -o /tmp/voice-reply.mp3 "Your message here"

# 然後在回覆中包含:
# MEDIA:/tmp/voice-reply.mp3

語音角色提示:

  • 瘋狂科學家:使用 [excited] 標籤、戲劇性停頓 [short pause],變化強度
  • 冷靜:使用 [whispers] 或較慢的節奏
  • 戲劇性:適度使用 [sings] 或 [shouts]

Clawd 的預設語音 ID:lj2rcrvANS3gaWWnczSX(或直接使用 -v Clawd)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

相關技能