克劳德码tts
使用macOS向Claude Code添加文本转语音的MCP服务器 say 命令。
快速开始
claude mcp add --transport stdio tts -- npx claude-code-tts为了让克劳德每次发言都不需要确认,请在您的发言中添加以下内容 ~/.claude/settings.json:
{
"permissions": {
"allow": [
"mcp__tts__speak",
"mcp__tts__list_voices"
]
}
}然后让克劳德说点什么——它会用 speak 工具自动。
工具
speak
使用macOS文本转语音大声朗读文本。
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
text | string | (必填) | 要发言的文本 |
voice | 字符串 | Samantha | macOS语音名称 |
rate | 编号 | 175 | 语速(每分钟单词数) |
list_voices
列出所有可用的macOS TTS语音。使用此功能查找语音名称 speak 工具。
需求
- macOS(使用内置
/usr/bin/say命令) - Node.js 18+
许可证
麻省理工学院
