Piper TTS Server
БесплатноНе проверенEnables AI models to generate high-quality voice messages from text using the Piper TTS engine, with automatic model management and audio streaming.
Описание
Enables AI models to generate high-quality voice messages from text using the Piper TTS engine, with automatic model management and audio streaming.
README
A Model Context Protocol (MCP) server that provides Text-to-Speech (TTS) capabilities using the Piper engine. This server allows AI models to "speak" by generating high-quality voice messages from text.
Features
- High-Quality TTS: Uses Piper for fast, local speech synthesis.
- MCP Integration: Compatible with any MCP client supporting HTTP transport.
- Audio Streaming: Returns a URL to the generated audio in Ogg Opus format (optimized for web/mobile).
- Automatic Model Management: Automatically downloads requested models if they are not present locally.
- LRU Caching: Stores the last 3 generated audio files in memory for retrieval.
Installation & Setup
Prerequisites
- Docker and Docker Compose
- Or Python 3.12 with
uv
Using Docker (Recommended)
Build the image:
docker compose buildStart the server:
docker compose up piper-mcpThe server will be running at
http://localhost:8000.
Local Development
Install dependencies:
uv syncRun the server:
# Use HTTP transport by default export MCP_TRANSPORT=http uv run server.py
MCP Server Connection
To connect, use the following configuration (HTTP transport):
{
"mcpServers": {
"piper-tts": {
"type": "http",
"url": "http://localhost:8000/mcp"
}
}
}
Testing
To run the automated tests using Docker (uses the test profile):
docker compose --profile test up tests
Or locally:
pytest tests/
MCP Tool
After connecting, the following tool will be available:
speak: Generates a voice message from text.- Arguments:
text(string) — the text to speak. - Result: A JSON object containing
status,audio_url, and metadata (size, format).
- Arguments:
Model Selection
The voice model is selected using the MODEL environment variable.
- Default Model:
ru_RU-denis-medium. - Logic:
- At startup, the server checks for
.onnxand.onnx.jsonfiles in the working directory. - If not found, it automatically downloads them from the official Piper repository.
- Change the
MODELvalue indocker-compose.ymlto switch voices.
- At startup, the server checks for
Project Repositories
- Piper Engine: https://github.com/OHF-Voice/piper1-gpl
- Piper Voices (Model List): https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/VOICES.md — check this repository to see all available voices and their names.
Установка Piper TTS Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/trulander/piper-tts-mcpFAQ
Piper TTS Server MCP бесплатный?
Да, Piper TTS Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Piper TTS Server?
Нет, Piper TTS Server работает без API-ключей и переменных окружения.
Piper TTS Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Piper TTS Server в Claude Desktop, Claude Code или Cursor?
Открой Piper TTS Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Omni Video
An MCP server that transforms LLM-enabled IDEs into professional video editors by pre-processing footage into text proxies, generating motion graphics via HTML/
автор: buildwithtazaARA
Generate images, video and audio from any AI agent — one connector.
автор: ARAYouTube
Transcripts, channel stats, search
автор: YouTubeEverArt
AI image generation using various models.
автор: modelcontextprotocolCompare Piper TTS Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории media
