PZ

phialsbasement/zonos-tts-mcp

开发工具

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

14 stars 10 forks 质量 51 趋势 20

允许克洛德有声音的MCP服务器.

概览

一个用于Zonos TTS的模型上下文协议集成,允许克洛德直接生成语音. 要通过 Smithery 为 Claude 桌面自动安装 Zonos TTS 集成 : 1. 确保Zonos与我们的API执行(PhialsBasement/zonos-api) 5. 加入克洛德的配置文件:编辑您的克洛德配置文件(通常在~/.config/claude/config.json中),并将此添加到mcpServers部分: 用您安装 MCP 服务器的实际路径替换 /path/ to/ your/ szonos- mcp 。 Claude一旦配置,就自动知道如何使用 speak response工具 : -通过克洛德进行文字对话 - 多重情感支持 - 多语种支持 - 通过PulseAudio进行适当的音频回放 - Node.js - PulseAudio设置 - 正在运行的 Zonos API (PhialsBasement/zonos-api) - 工作音频输出设备

概述(AI 翻译)

一个用于Zonos TTS的模型上下文协议集成,允许克洛德直接生成语音.

□ 设置

通过 Smithery 安装

要通过 Smithery 为 Claude 桌面自动安装 Zonos TTS 集成 :

手动安装

  1. 确保Zonos与我们的API执行(PhialsBasement/zonos-api)

  2. 安装依赖性:

  3. 配置 PulseAudio 访问:

  4. 构建 MCP 服务器:

  5. 加入克洛德的配置文件: 编辑您的 Claude 配置文件( 通常是在 [[T0] ) , 并将此添加到 [[T1] 部分 :

用您安装 MCP 服务器的实际路径替换 /path/to/your/zonos-mcp 。

□ 与克洛德一起使用

一旦配置,克洛德自动知道如何使用 [[T3] 工具:

□ 特性

  • 通过克洛德对讲文字
  • 多重情绪支持
  • 多语种支助
  • 通过PulseAudio进行适当的音频回放

□ 要求

  • 节点.js
  • PulseAudio设置
  • Zonos API的运行实例
  • 工作音频输出设备

□ 注释

  • 确保Zonos API服务器和这个MCP服务器都在运行
  • 音频回放需要适当的 PulseAudio 配置

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

README

Zonos MCP Integration

A Model Context Protocol integration for Zonos TTS, allowing Claude to generate speech directly.

Setup

Installing via Smithery

To install Zonos TTS Integration for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @PhialsBasement/zonos-tts-mcp --client claude

Manual installation

  1. Make sure you have Zonos running with our API implementation (PhialsBasement/zonos-api)

  2. Install dependencies:

npm install @modelcontextprotocol/sdk axios
  1. Configure PulseAudio access:
# Your pulse audio should be properly configured for audio playback
# The MCP server will automatically try to connect to your pulse server
  1. Build the MCP server:
npm run build
# This will create the dist folder with the compiled server
  1. Add to Claude’s config file: Edit your Claude config file (usually in ~/.config/claude/config.json) and add this to the mcpServers section:
"zonos-tts": {
  "command": "node",
  "args": [
    "/path/to/your/zonos-mcp/dist/server.js"
  ]
}

Replace /path/to/your/zonos-mcp with the actual path where you installed the MCP server.

Using with Claude

Once configured, Claude automatically knows how to use the speak_response tool:

speak_response(
    text="Your text here",
    language="en-us",  # optional, defaults to en-us
    emotion="happy"    # optional: "neutral", "happy", "sad", "angry"
)

Features

  • Text-to-speech through Claude
  • Multiple emotions support
  • Multi-language support
  • Proper audio playback through PulseAudio

Requirements

  • Node.js
  • PulseAudio setup
  • Running instance of Zonos API (PhialsBasement/zonos-api)
  • Working audio output device

Notes

  • Make sure both the Zonos API server and this MCP server are running
  • Audio playback requires proper PulseAudio configuration
在 GitHub 查看完整 README

安装

npx -y @smithery/cli install @PhialsBasement/zonos-tts-mcp --client claude
新手?先看 mcpskill.org 教程 →