VoiceCard

VoiceCard

Enables cloning a voice from a local audio or video file and generating shareable audio-reactive waveform MP4 videos of spoken text, with customizable palettes, photos, and layouts, all through natural language from MCP-aware agents.

Category
访问服务器

README

VoiceCard

Clone your voice and turn it into a shareable waveform video, all driven by MCP. No GUI. Apple Silicon only.

Voice cloning is now commodity. The differentiator is delivery: a short MP4 with a beautiful audio-reactive waveform plays inline in WhatsApp, iMessage, Signal, and Slack, where raw audio files stall, fail to autoplay, or won't cross iOS/Android. Every clip you send is also an ad for the tool. That is the whole idea.

The front end is the MCP. You talk to it from Claude Code, Cursor, or any MCP-aware agent:

"Clone my voice from ~/Desktop/me.mov (here's the transcript), then make a 15-second Miami-palette clip saying happy birthday, with my photo in the center."

How it works

Fully standalone. Speech is generated locally by mlx-audio (Qwen3-TTS via MLX), the waveform video is rendered with MLX / Pillow, and muxed with ffmpeg. No cloud, no Voicebox, no desktop app.

Cloning is zero-shot in-context learning: it trims your reference to ~12 seconds and conditions on it. There is no training step and no separate model per voice.

Requirements

  • Apple Silicon Mac (arm64). Enforced at startup.
  • Nothing else to install by hand. ffmpeg ships bundled (static binary via imageio-ffmpeg); a system ffmpeg on PATH is used automatically if present.

First run is the slow one

The install itself is quick, but it does not download the AI models. On the first clone_voice / make_clip, VoiceCard lazily pulls into the shared Hugging Face cache (~/.cache/huggingface/hub/):

  • Qwen3-TTS weights (~a few GB) — speech synthesis.
  • Whisper (large-v3-turbo, ~1.5 GB) — used to auto-transcribe references and to time captions.

Both are cached, so it only happens once. Budget a few minutes, some bandwidth, and ~several GB of disk for that first call.

No Hugging Face account or token is required — both models are public and download anonymously. Hugging Face is only used as the download host. Anonymous downloads are rate-limited, though; if the first download is slow or throttled, set a free token for faster/higher-rate downloads (entirely optional):

export HF_TOKEN=hf_xxx      # optional — only speeds up / de-throttles the first download

Install

Needs uv (brew install uv, or the one-line installer from that page). Nothing else — ffmpeg is bundled, the models download themselves.

One-liner, straight from GitHub:

uv tool install git+https://github.com/JasonMakes801/voicecard-mcp

Then register it with Claude Code (the voicecard command is now on your PATH):

claude mcp add -s user voicecard -- voicecard

That's it. Ask your agent to clone_voice and make_clip.

<details> <summary>Alternative: from a local clone (for development)</summary>

git clone https://github.com/JasonMakes801/voicecard-mcp
cd voicecard-mcp
uv tool install .                      # or: uv run voicecard

# register the in-place checkout
claude mcp add -s user voicecard -- uv --directory "$PWD" run voicecard

</details>

Tools

Tool What it does
list_voices() List stored voices, each paired with its ref_text, ref_audio, and companion avatar (or null).
palettes() List available palettes (name + colors) and render a visual swatch sheet (returns {palettes, swatch}); show the swatch so the user picks by sight.
clone_voice(name, source, transcript?, photo?) Clone from an audio or video file. Trims the reference to ~12s and stores a profile. transcript is optional — omit it and VoiceCard auto-transcribes the reference (Whisper). photo is an optional companion avatar, copied into the profile so voice + face travel together.
speak(text, voice) Generate speech in a cloned voice; returns a wav path.
make_clip(text, voice, palette?, photo?, label?, aspect?, layout?, arc?, captions?) Generate speech and render the shareable waveform mp4. Captions (pop-up bubbles timed to delivery) are on by default; avatar falls back to the voice's stored photo. Returns the mp4 path.

Palettes: Noir (default), 70s Gold, Miami, Aurora, Sunset, Mint, Blueprint Aspect: square (1080², default), portrait (9:16) Layout: linear (default — circular photo + compact gradient waveform below, Dynamic-Island style) · circle (centered audio-reactive spectrum ring) Arc (circle layout only): full (default, mirrored ring) · top (spikes over the top half)

Config (env)

Var Default
VOICECARD_OUT ~/VoiceCard (profiles + rendered clips)
VOICECARD_MODEL mlx-community/Qwen3-TTS-12Hz-1.7B-Base-bf16
VOICECARD_WHISPER mlx-community/whisper-large-v3-turbo
VOICECARD_FFMPEG override the ffmpeg binary (else system PATH, else bundled)
VOICECARD_URL QR target printed on each clip
VOICECARD_TAGLINE tagline printed on each clip

Testing

uv pip install -e ".[test]"

pytest tests/test_fast.py tests/test_mcp.py -q      # fast: no model, no network (~1s)
VOICECARD_RUN_MODEL_TESTS=1 pytest tests/test_integration.py -q   # real Qwen+Whisper (downloads GBs)
bash scripts/virgin_install_test.sh                 # fresh-venv install + smoke, from scratch
  • Fast (test_fast.py, test_mcp.py): palette integrity, caption alignment (input words, STT timings), arg validation, and the MCP protocol surface.
  • Integration (test_integration.py, gated): clone → speak → make_clip end to end, asserting the mp4 has audio+video and non-zero duration.
  • Virgin install (scripts/virgin_install_test.sh): installs into a throwaway venv and verifies imports, the bundled-ffmpeg fallback (no brew), the console script, and the no-model suites against the installed package.

Notes

  • Output is stereo, +faststart, H.264 High profile — tuned to autoplay inline in messengers.
  • The waveform is stylized to always look alive, not a diagnostic spectrum analyzer.
  • Core ML / ANE offload of the autoregressive decoder is not planned (dynamic shapes + KV cache + sequential decode are a poor ANE fit). A future Core ML vocoder offload is the only piece worth exploring.

Roadmap

  • Captions without Whisper (harvest Qwen's own alignment). Qwen3-TTS runs at 12 Hz and already knows word timing internally via its cross-attention (a monotonic text-token → audio-frame ridge). Today we recover timing by running Whisper on the output — robust but a whole second model. Instead, patch mlx-audio's decode to surface the cross-attention for the target region (front-cut the ICL reference), extract a monotonic alignment, and map text tokens → words. This would move Whisper off the per-clip hot path: combined with passing transcript at clone time, Whisper would never run (or download) for a normal user. Risk: mlx-audio's internal decode is not a stable API, so pin the version and add a drift test (Qwen-derived timings vs Whisper on a fixture; fail if they diverge). Note: there are no phonemes to align — only BPE text tokens → audio frames.

License

MIT. You are responsible for only cloning voices you own or are authorized to use.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选