BM

blacktop/mcp-tts

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

74 stars 19 forks 质量 86 趋势 20MIT

Blacktop/MCP-TTS 是从 https://github.com/blacktop/mcp-tts. 导入的 MCP 服务器候选服务器。

概览

Blacktop/MCP-TTS 是从 https://github.com/blacktop/mcp-tts. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

MCP-TTS 面向转语音转语音(TTS)的MCP服务器

什么?🤔

为Claude Desktop和Cursor IDE等软件添加了文本转语音功能。

它注册现有的TTS工具,并在voice-say可用时注册voice_tts:

  • say_tts
  • voice_tts(可用时)
  • elevenlabs_tts
  • google_tts
  • openai_tts

say_tts

使用macOS say二进制程序,带内置系统语音来朗读文本

voice_tts

使用Voice的本地voice-sayCLI通过MLX运行Qwen3-TTS。Voice无需API密钥,文本和音频都保存在Mac上。模型每次调用都会重新加载,因此启动通常需要几秒钟;我更倾向于用于摘要和公告,而非时间紧迫的警报。

该工具仅在 voice-say 可解析于 PATH 时注册。可选参数有:

  • voice:预设声部 Ryan 或 Aiden
  • tier:small用于更快的0.6B合成,large用于更高质量的1.7B合成
  • style:自由文本传递指导
  • describe:自由文本语音设计;强制采用1.7B模型,且不可与[[T22])结合使用。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

mcp-tts MCP Server for TTS (Text-to-Speech)

What? 🤔

Adds Text-to-Speech to things like Claude Desktop and Cursor IDE.

It registers the existing TTS tools, plus voice_tts when voice-say is available on PATH:

  • say_tts
  • voice_tts (when available)
  • elevenlabs_tts
  • google_tts
  • openai_tts

say_tts

Uses the macOS say binary to speak the text with built-in system voices

voice_tts

Uses the local voice-say CLI from Voice to run Qwen3-TTS through MLX. Voice needs no API key and keeps text and audio on the Mac. The model reloads for every invocation, so startup typically takes several seconds; prefer it for summaries and announcements rather than time-critical alerts.

The tool is registered only when voice-say is resolvable on PATH. Optional parameters are:

  • voice: preset voice Ryan or Aiden
  • tier: small for faster 0.6B synthesis or large for higher-quality 1.7B synthesis
  • style: free-text delivery guidance
  • describe: free-text voice design; forces the 1.7B model and cannot be combined with voice

Voice plays audio directly and does not support --output-dir; with --no-play, calls fail without launching voice-say.

[!WARNING] The Voice repository is currently private and will be released publicly soon, so the link requires access for now.

elevenlabs_tts

Uses the ElevenLabs text-to-speech API to speak the text with premium AI voices

google_tts

Uses Google’s Gemini TTS models to speak the text with 30 high-quality voices. Available voices include:

在 GitHub 查看完整 README

安装

npx skills add https://github.com/blacktop/mcp-tts --skill speak
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "say": { "command": "mcp-tts", "env": { "ELEVENLABS_API_KEY": "********", "ELEVENLABS_VOICE_ID": "EXAVITQu4vr4xnSDxMaL", "GOOGLE_AI_API_KEY": "********", "OPENAI_API_KEY": "********", "OPENAI_TTS_INSTRUCTIONS": "Speak in a cheerful and positive tone", "MCP_TTS_SUPPRESS_SPEAKING_OUTPUT": "true", "MCP_TTS_ALLOW_CONCURRENT": "false" } } } }