Windows System.Speech 中文朗读 · 本地工具
利用 Claude Code Hooks + PowerShell + Windows System.Speech,在 Claude Code 回复时自动朗读中文。
所有处理在本地完成,不上传任何数据到云端。
这是一个本地脚本工具,未部署到网页。在本机双击以下文件即可开关:
%USERPROFILE%\.claude\hooks\voice-toggle.cmd
或在终端执行:
%USERPROFILE%\.claude\hooks\voice-toggle.cmd
%USERPROFILE%\.claude\hooks\ ├── tts-start.cmd / tts-start.ps1 ← 启动钩子 ├── tts-end.cmd / tts-end.ps1 ← 清理钩子 ├── tts-monitor.ps1 ← 轮询朗读守护 ├── tts-functions.ps1 ← 核心函数库 ├── voice-toggle.cmd / .ps1 ← 一键开关 └── tts-state.json ← 开关状态