# Text to Speech — 20+ Languages, MP3 Output

Text to Speech — 20+ Languages, MP3 Output is a Claude Code MCP server that converts text into speech in 20+ languages and returns base64 MP3 audio for voice alerts and spoken UI.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 2769 installs
- Author: axel-belfort
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/axel-belfort/text-to-speech
- Updated: 2026-04-13
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/text-to-speech-20-languages-mp3-output

## What it does

The server provides a single tool, `media_text_to_speech`. It sends your prompt to the Google TTS engine and responds with a JSON payload holding base64-encoded MP3 audio. Alongside the sound stream, the tool delivers the character count, the language code, and an estimated duration.

Speech synthesis works across more than 20 languages. You do not need a traditional API key, but each call triggers a $0.005 micropayment via x402 on Base L2.

## Requirements
- Remote server: `https://text-to-speech--axel-belfort.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http text-to-speech https://text-to-speech--axel-belfort.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add text-to-speech-20-languages-mp3-output --url https://text-to-speech--axel-belfort.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "text-to-speech-20-languages-mp3-output": {
            "url": "https://text-to-speech--axel-belfort.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "text-to-speech-20-languages-mp3-output": {
            "type": "http",
            "url": "https://text-to-speech--axel-belfort.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http text-to-speech-20-languages-mp3-output https://text-to-speech--axel-belfort.run.tools
```

## When to use it
- generate MP3 voice clips across 20+ languages
- play voice notifications directly inside agent workflows
- build spoken responses for accessibility features

## Example prompts
- Convert this greeting into spoken audio using `media_text_to_speech`
- Generate speech audio for this warning message in Spanish

## Similar
- [text-to-speech](https://affpapa.org/en/nevibecode/skills/calesthio-text-to-speech.md) — skill · 1300 installs
- [speech-to-text](https://affpapa.org/en/nevibecode/skills/speech-to-text.md) — skill · 16200 installs
- [venice-audio-speech](https://affpapa.org/en/nevibecode/skills/veniceai-venice-audio-speech.md) — skill · ★ 176 repo stars
- [azure-speech-to-text-rest-py](https://affpapa.org/en/nevibecode/skills/azure-speech-to-text-rest-py.md) — skill · 2 installs
- [google-cloud-speech](https://affpapa.org/en/nevibecode/skills/google-cloud-speech.md) — skill · 132 installs
- [Text Translator — 50+ Languages with Auto-Detection](https://affpapa.org/en/nevibecode/mcp/text-translator-50-languages-with-auto-detection.md) — MCP server · 2463 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
