[Vibe Code] 给 Claude Code 添加完成音效

当使用 Claude Code 进行 vibe coding 时, 一般放到命令行终端进行执行,Claude Code 执行结束就不知道是什么时候了。

这个时候就需要使用 Claude Code 的 Hooks 进行音效提醒。
相关配置如下:

这里以 MacOS 举例:

.claude/settings.json

  "hooks": {
    "Stop": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "afplay /System/Library/Sounds/Glass.aiff & say \"Claude Code 任务完成\""
          }
        ]
      }
    ]
  }

修改完成后,重新进入 claude code, 在执行完成一个对话时就会触发提醒音效。

GitHub 上有已成熟的软件:

Popen-Ping

集成了不同 AI IDE 的 Hook 来进行声音播放,且带有语音包

安装步骤和配置可通过 GitHub 网站进行安装配置。

posted @ 2026-01-13 23:26  StichGK  阅读(50)  评论(0)    收藏  举报