跳到正文
cccskills
免费在 GitHub 公开

on

This skill should be used when the user asks to "enable narrator", "turn on voice", "start narrator", "enable voice output", "narrator on", or wants to activate text-to-speech output for Claude Code responses.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Enable Narrator Voice Output

To enable narrator voice output, perform the following steps in order:

Step 1: Determine Scope

Check if the user said "locally", "for this directory", "for this project", or similar. If so, all state changes apply to a local config file in the current working directory instead of the global one.

  • Global (default): ~/.claude-code-narrator/config
  • Local: <cwd>/.claude-code-narrator/config

Step 2: Enable Narrator State

Global mode (default):

Read ~/.claude-code-narrator/config. If the file exists, use the Edit tool to change the enabled= line to enabled=true (preserve the existing voice and speed settings). If the file does not exist, create it with the Write tool:

enabled=true
voice=af_heart
speed=1.1

Local mode:

Read <cwd>/.claude-code-narrator/config. If the file exists, use the Edit tool to change or add enabled=true. If the file does not exist, create the <cwd>/.claude-code-narrator/ directory if needed, then create the config file with the Write tool containing just enabled=true. Do NOT include voice or speed unless the user specifies them — missing keys fall back to the global state.

IMPORTANT: Do NOT use sed to edit state files — use the Read and Edit tools instead.

Step 3: Register Auto-Hush Hook

Read ~/.claude/settings.json. If it does not have a UserPromptSubmit hook that runs hush-on-input.sh, add one. This hook silences speech when the user provides input.

Use the Edit tool to add the following to the hooks object in ~/.claude/settings.json (create the hooks key if it doesn't exist, and merge with any existing hooks):

"UserPromptSubmit": [
  {
    "hooks": [
      {
        "type": "command",
        "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/hush-on-input.sh",
        "timeout": 3
      }
    ]
  }
]

IMPORTANT: Do NOT replace existing hooks — merge with them. Read the file first.

Step 4: Confirm

For global mode, inform the user: "Narrator is now enabled. I will speak responses aloud using the af_heart voice."

For local mode, inform the user: "Narrator is now enabled for this directory. Voice and speed will fall back to global settings unless overridden locally."

Also remind the user to add the local config to their gitignore if they haven't already:

Tip: Add the local config to your .gitignore so it's not committed:

echo .claude-code-narrator >> .gitignore

Then speak a test confirmation. This will auto-install Kokoro TTS into a dedicated venv on first run (may take a few minutes):

echo "Narrator is now active." | bash "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/speak.sh" --force

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

cast

免费

This skill should be used when the user asks to "change narrator voice", "set voice", "list voices", "narrator cast", "switch voice", "cast voice", or wants to change the text-to-speech voice used by narrator.

中文简介正在准备中。当前显示原文说明。

shreyas-s-rao/claude-code-narrator292026年5月19日 更新

hush

免费

This skill should be used when the user asks to "hush", "be quiet", "stop speaking", "silence narrator", "narrator hush", "shut up", or wants to immediately stop all current and queued speech output.

中文简介正在准备中。当前显示原文说明。

shreyas-s-rao/claude-code-narrator292026年5月19日 更新

off

免费

This skill should be used when the user asks to "disable narrator", "turn off voice", "stop narrator", "disable voice output", "narrator off", "mute narrator", or wants to deactivate text-to-speech output.

中文简介正在准备中。当前显示原文说明。

shreyas-s-rao/claude-code-narrator292026年5月19日 更新

speak

免费

This skill should be used when the user asks to "speak this", "read this aloud", "narrator speak", "say this out loud", or wants Claude to speak specific text or a summary of the last action on-demand, regardless of whether narrator is enabled.

中文简介正在准备中。当前显示原文说明。

shreyas-s-rao/claude-code-narrator292026年5月19日 更新

speed

免费

This skill should be used when the user asks to "change speed", "set speed", "talk faster", "talk slower", "speed up", "slow down", "narrator speed", or wants to change the text-to-speech speech rate used by narrator.

中文简介正在准备中。当前显示原文说明。

shreyas-s-rao/claude-code-narrator292026年5月19日 更新

查看 shreyas-s-rao 的全部技能

报告此技能的问题