Blabber-MCP

MIT License
1

📢 Blabber-MCP🗣️

一个 MCP 服务器,使用 OpenAI 的文本转语音 API 为你的 LLM 提供语音功能!🔊


✨ 特点

  • **文本转语音:**将输入文本转换为高质量的语音音频。
  • **语音选择:**从各种 OpenAI 语音中进行选择( alloyechofableonyxnovashimmer )。
  • **型号选择:**使用标准型( tts-1 )或高清型( tts-1-hd )型号。
  • **格式选项:**mp3opusaacflac获取音频输出。
  • **文件保存:**将生成的音频保存到本地文件。
  • **可选播放:**使用可配置的系统命令自动播放生成的音频。
  • **可配置的默认值:**通过配置设置默认语音。

🔧 配置

要使用此服务器,您需要将其配置添加到 MCP 客户端的设置文件(例如mcp_settings.json )。

  1. **获取 OpenAI API 密钥:**您需要一个来自OpenAI的 API 密钥。
  2. **添加到 MCP 设置:**将以下块添加到设置文件中的mcpServers对象,并用您的实际密钥替换"YOUR_OPENAI_API_KEY"
{ "mcpServers": { "blabber-mcp": { "command": "node", "args": ["/full/path/to/blabber-mcp/build/index.js"], (IMPORTANT: Use the full, absolute path to the built index.js file) "env": { "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY", "AUDIO_PLAYER_COMMAND": "xdg-open", (Optional: Command to play audio (e.g., "cvlc", "vlc", "mpv", "ffplay", "afplay", "xdg-open"; defaults to "cvlc") "DEFAULT_TTS_VOICE": "nova" (Optional: Set default voice (alloy, echo, fable, onyx, nova, shimmer); defaults to nova) }, "disabled": false, "alwaysAllow": [] } } }

**重要提示:**请确保args路径指向blabber-mcp项目目录中build/index.js文件的正确位置。请使用完整的绝对路径。


🚀 使用方法

配置并运行后,您可以通过 MCP 客户端使用text_to_speech工具。

工具: text_to_speech服务器: blabber-mcp (或您在配置中使用的密钥)

参数:

  • input (字符串,必需):要合成的文本。
  • voice (字符串,可选):要使用的语音( alloyechofableonyxnovashimmer )。默认为配置中设置的DEFAULT_TTS_VOICEnova
  • model (字符串,可选):模型 ( tts-1tts-1-hd )。默认为tts-1
  • response_format (字符串,可选):音频格式 ( mp3 , opus , aac , flac )。默认为mp3
  • play (布尔值,可选):设置为true则保存后自动播放音频。默认为false

工具调用示例(带回放):

<use_mcp_tool> <server_name>blabber-mcp</server_name> <tool_name>text_to_speech</tool_name> <arguments> { "input": "Hello from Blabber MCP!", "voice": "shimmer", "play": true } </arguments> </use_mcp_tool>

输出:

该工具将音频文件保存到blabber-mcp项目文件夹内的output/目录,并返回如下 JSON 响应:

{ "message": "Audio saved successfully. Playback initiated using command: cvlc", "filePath": "path/to/speech_1743908694848.mp3", "format": "mp3", "voiceUsed": "shimmer" }

📜 许可证

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。


🕒 更新日志

有关版本历史的详细信息,请参阅CHANGELOG.md文件。


-
security - not tested
-
license - not tested
-
quality - not tested

MCP 服务器使 LLM 能够使用 OpenAI 的文本转语音 API 从文本生成语音,支持各种语音、模型和音频格式。

  1. ✨ 特点
    1. 🔧 配置
      1. 🚀 使用方法
        1. 📜 许可证
          1. 🕒 更新日志

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              Enables recording audio from a microphone and transcribing it using OpenAI's Whisper model. Works as both a standalone MCP server and a Goose AI agent extension.
              Last updated -
              4
              Python
              MIT License
            • A
              security
              A
              license
              A
              quality
              A MCP server that enables transcription of audio files using OpenAI's Speech-to-Text API, with support for multiple languages and file saving options.
              Last updated -
              1
              2
              JavaScript
              MIT License
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              MCP server for Synthesizer V AI Vocal Studio, which allows LLMs to create/edit vocal tracks e.g. adding lyrics to the melody.
              Last updated -
              6
              Apache 2.0
              • Apple
            • A
              security
              A
              license
              A
              quality
              An official Model Context Protocol (MCP) server that enables AI clients to interact with ElevenLabs' Text to Speech and audio processing APIs, allowing for speech generation, voice cloning, audio transcription, and other audio-related tasks.
              Last updated -
              19
              633
              Python
              MIT License
              • Apple

            View all related MCP servers

            ID: c1urx5e2us