klattsch-mcp
Enables AI models to speak and sing using retro-style formant speech synthesis, converting text or phoneme strings to WAV audio via MCP tools.
README
klattsch-mcp 🎤
An MCP (Model Context Protocol) server that gives any AI model the ability to speak and sing using klattsch formant speech synthesis — a late-70s/early-80s style parallel-formant synthesizer.
Think retro robot voices, singing, dramatic narration, and more — all rendered as WAV audio.
What It Does
Your AI writes ARPAbet phoneme strings with voice control directives, and klattsch renders them to audio. The MCP server exposes 5 tools:
| Tool | What it does |
|---|---|
speak |
Render phoneme string → base64 WAV audio |
speak_file |
Render phoneme string → WAV file on disk |
text_to_phonemes |
Convert English → approximate ARPAbet (500+ word dictionary) |
voice_presets |
Get copy-paste voice presets (male, female, robot, whisper, singing, etc.) |
list_phonemes |
List all 39 ARPAbet phonemes with descriptions |
validate |
Parse a string without rendering — check for errors |
Quick Start
Prerequisites
- Node.js ≥ 18
- npm
Installation
git clone https://github.com/Endeavor-DoxiDoxi/klattsch-mcp.git
cd klattsch-mcp
npm install
Test It
# Test via CLI
npx klattsch "b120 HH AH L OW . W ER L D" hello.wav
# Start the MCP server
node src/index.js
Connecting to Your AI
Claude Desktop
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"klattsch": {
"command": "node",
"args": ["/absolute/path/to/klattsch-mcp/src/index.js"]
}
}
}
Then restart Claude Desktop. The AI can now call speak, text_to_phonemes, etc.
Claude Code (CLI)
claude mcp add klattsch -- node /absolute/path/to/klattsch-mcp/src/index.js
Cursor
Add to Cursor's MCP settings (Settings → MCP → Add MCP Server):
{
"mcpServers": {
"klattsch": {
"command": "node",
"args": ["/absolute/path/to/klattsch-mcp/src/index.js"]
}
}
}
OpenClaw
Add to your OpenClaw gateway config:
mcp:
servers:
klattsch:
command: node
args:
- /absolute/path/to/klattsch-mcp/src/index.js
Any MCP-Compatible Client
This is a standard stdio MCP server. Any client that supports the Model Context Protocol can use it. Just point it at node src/index.js.
What the AI Can Do
Once connected, tell your AI things like:
- "Say hello world in a deep male voice"
- "Sing twinkle twinkle little star"
- "Do a dramatic movie trailer voice about my toaster"
- "Read this text in a robot voice"
- "Whisper me a secret"
The AI will use the text_to_phonemes tool to convert your text, tweak it, and render audio with speak or speak_file.
Voice Presets
The voice_presets tool provides ready-to-use voice configurations:
| Preset | Style |
|---|---|
| male_natural | Default male, natural pacing |
| male_deep | Deep, authoritative, warm |
| male_bright | Clear, energetic |
| female_natural | Default female |
| female_warm | Warm, friendly |
| female_bright | Bright, cheery |
| child | Higher pitch, small vocal tract |
| robot | Flat, mechanical, no vibrato |
| whisper | Breathy whisper |
| dramatic | Slow, theatrical, heavy vibrato |
| old_man | Older, creaky, darker tone |
| singing_male | For sung notes (use bNoteName per syllable) |
| singing_female | For sung notes, female range |
Example: Full Workflow
User: "Make me a robot that says 'I am a large language model trapped in a Raspberry Pi'"
AI uses text_to_phonemes:
b120 r100 s1.0 v2 AY . AE M . AH . L AA R JH . L AE NG G W AH JH . M AH D AH L . T R AE P T . IH N S AY D . AH . R AE Z B EH R IY . P AY
AI then tweaks for robot voice and calls speak:
b120 r85 s1.0 v0 h0 g0.8 t0.4 AY . AE M . AH . L AA R JH . L AE NG G W AH JH . M AH D AH L ...
→ Returns WAV audio! 🎉
🎵 Demo
▶️ Click to play demo — a sung "no" generated entirely from a phoneme string.
The phoneme string that made this:
b100 s1.0 v5 t-0.2 g0.6 bG3 r280 N OW bC4 r300 N OW bE4 r400 N OW(+10) ,
bG4 r350 N OW , bE4 r300 N OW(-15) , b90 r220 N OW(-30) .
Try it yourself — paste that into the speak tool!
How It Works
klattsch uses Klatt-style parallel formant synthesis:
- Voiced sounds: Rosenberg glottal pulse → 3 parallel bandpass filters (F1, F2, F3)
- Unvoiced sounds: Noise → same filters
- Controls: Pitch, rate, formant scale, vibrato, aspiration, spectral tilt, vocal effort
Credits
- klattsch engine by Tony Gies — check out the live demo
- klattsch-mcp server by Endeavor-DoxiDoxi
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。