Token导航 LogoToken导航TokenDH.com
voicemcp server logo
音视频stdio官方级别未说明来源级核验

voicemcp server

MCP Server

Elise Voice MCP Server 是一个基于模型上下文协议(MCP)的服务器,提供使用Hugging Face的Elise/Ceylia语音数据集进行文本到语音转换的功能。

工具数

3

提示词数

0

GitHub Stars

0

资源数

0
语音音频语音合成PythonClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

martin2110

提供方

martin2110

最后核验

2026/5/17 20:21

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python -m venv venv

详细介绍

Elise Voice MCP Server

An MCP (Model Context Protocol) server that provides text-to-speech capabilities using the Elise/Ceylia voice dataset from Hugging Face.

Current Status (Pre-MLX Migration)

This commit represents the working state using Coqui TTS XTTS-v2 running on CPU.

Features

  • Text-to-Speech Generation: Convert text to speech with automatic playback
  • Voice Characteristics: Query detailed information about the Elise/Ceylia voice (pitch, speaking rate, quality metrics)
  • Sample Texts: Browse sample texts from the original dataset
  • Auto-playback: Generated audio plays automatically via macOS afplay
  • Easy Integration: Works seamlessly with Claude Desktop and other MCP clients

Dataset

This server uses the Jinsaryko/Elise dataset from Hugging Face, which contains high-quality speech samples from the speaker "Ceylia" with detailed acoustic annotations.

Installation

Prerequisites

  • Python 3.10 or higher
  • pip or uv package manager

Setup

  1. Clone or navigate to this directory
  1. Create a virtual environment (recommended)
   python -m venv venv
   source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies
   pip install -r requirements.txt

Or using uv:

   uv pip install -r requirements.txt

Configuration

For Claude Desktop

Add this configuration to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "elise-voice": {
      "command": "/Users/martin.suehowicz/code/voicemcp_server/venv/bin/python",
      "args": [
        "/Users/martin.suehowicz/code/voicemcp_server/src/elise_voice_server.py"
      ],
      "cwd": "/Users/martin.suehowicz/code/voicemcp_server/src"
    }
  }
}

Note: Update the paths to match your actual installation directory and virtual environment location.

Usage

Once configured in Claude Desktop, you can use the following tools:

1. Generate Speech

Ask Claude to generate speech from text:

Generate speech saying "Hello, I'm Ceylia, and I'm here to help you today!"

This will create an audio file in the audio_output/ directory.

2. Get Voice Information

Query voice characteristics:

What are the characteristics of the Elise voice?

This returns information about pitch, speaking rate, and quality metrics from the dataset.

3. Browse Sample Texts

See what kind of content the voice was trained on:

Show me some sample texts from the Elise dataset

Available Tools

The server provides three MCP tools:

ToolDescriptionParameters
generate_speechGenerate speech audio from texttext (required), filename (optional), play (optional, default: true)
get_voice_infoGet voice characteristics and quality metricsNone
list_sample_textsList sample texts from the datasetlimit (optional, default: 5)

Output

Generated audio files are saved in the audio_output/ directory as WAV files and automatically play via macOS afplay (can be disabled with play: false).

Development

Project Structure

voicemcp_server/
├── src/
│   ├── __init__.py
│   ├── elise_voice_server.py  # Main MCP server
│   ├── voice_dataset.py       # Dataset loader
│   └── tts_engine.py          # TTS generation
├── audio_output/              # Generated audio files
├── requirements.txt
├── pyproject.toml
└── README.md

Running Tests

pytest

Technical Details

  • MCP SDK: Uses the official Python MCP SDK for server implementation
  • Dataset Loading: Automatically downloads and caches the Elise dataset from Hugging Face
  • TTS Engine: Coqui TTS XTTS-v2 (tts_models/multilingual/multi-dataset/xtts_v2)
  • Model Location: ~/Library/Application Support/tts/tts_models--multilingual--multi-dataset--xtts_v2
  • Audio Format: Generates WAV audio files
  • Inference: CPU-only (Apple Silicon MPS support unreliable)
  • Performance: ~2-3 seconds per short sentence, ~20 seconds for long sentences
  • Dependencies: PyTorch 2.5.1, Transformers 4.39.3 (downgraded for compatibility)

Known Issues

  • Voice cloning currently disabled due to torchcodec/ffmpeg compatibility issues
  • Apple Silicon GPU (MPS) support unreliable with XTTS-v2
  • CPU-only inference is slow for longer text

Next Steps

Planning to migrate to mlx-audio for:

  • Better Apple Silicon optimization (Neural Engine + GPU)
  • Faster inference
  • Voice cloning support via CSM model
  • More reliable performance

Troubleshooting

Dataset Loading Issues

If you encounter issues loading the dataset:

  • Ensure you have a stable internet connection
  • Check that you have sufficient disk space for the dataset cache (~500MB)
  • The dataset will be cached locally after first download

Model Download Issues

If XTTS-v2 model fails to download:

  • Model is ~6GB, ensure sufficient disk space
  • Use manual download: huggingface-cli download coqui/XTTS-v2 --local-dir ~/Library/Application\ Support/tts/tts_models--multilingual--multi-dataset--xtts_v2

Audio Generation Errors

If speech generation fails:

  • Verify that TTS library is properly installed
  • Check that the output directory is writable
  • Ensure XTTS-v2 model is fully downloaded
  • Check logs: ~/Library/Logs/Claude/mcp-server-elise-voice.log

Claude Desktop Integration

If the server doesn't appear in Claude Desktop:

  • Verify the config file path is correct
  • Check that the cwd path in the config matches your installation
  • Ensure virtual environment paths are absolute
  • Restart Claude Desktop after changing the config
  • Check Claude Desktop logs: ~/Library/Logs/Claude/mcp-server-elise-voice.log

License

MIT License

Acknowledgments

目录标签

目录标签

语音音频语音合成PythonClaude文本转语音本地部署MCP服务器语音数据集语音克隆

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP