VoiceStudio: An Open-Source ElevenLabs Alternative Where the Engines Are Pluggable and the Agent Gets a Voice — aniketkarneai.com | aniketkarneai.com
Wednesday, November 11, 2026 Field notes on autonomous systems ● Amsterdam, NL
daily

VoiceStudio: An Open-Source ElevenLabs Alternative Where the Engines Are Pluggable and the Agent Gets a Voice

VoiceStudio (51.9K★, AGPL-3.0) ships 17 TTS backends behind one Electron UI, with a local-first MCP server that lets Claude Code, Codex, and Pi clone a voice per agent and write rendered audio to disk instead of dumping base64 into the context window. The interesting part is the operational plumbing — subprocess-isolated engines, a 6 GB VRAM floor with measured-vs-claimed distinctions, MIOPEN_FIND_MODE pinned at startup to kill 18-second ROCm kernel searches, and an OmniVoice default that picks its own 15-second clone window from a 75-second reference clip.

VoiceStudio is the open-source ElevenLabs alternative that picked a different fight. ElevenLabs is a hosted API with a couple of flagship voices and a polished web app. VoiceStudio is a local Electron app that ships 17 TTS backends behind one UI, an MCP server on localhost:3900/mcp/ that exposes cloning and synthesis as agent tools, and a default engine (k2-fsa/OmniVoice, 14.1K★) that does zero-shot cloning across 646 languages from 581,000 hours of training data. The number that tells you what kind of project this is: 51,919 stars, 5,779 forks, 84 open issues, AGPL-3.0, package.json pinned as the version-of-truth, releases on a roughly two-week cadence since v0.5.0 (Aug 14 → v0.5.6 Sep 23), and a maintainer who responded to “TTS got much slower after updating” with a regression postmortem in the perf guide rather than a “we’ll look into it” reply.

The interesting bit is not the engine count or the language count. It’s the operational plumbing — the part that determines whether a multi-engine, multi-accelerator, multi-OS desktop app actually works on your machine instead of silently falling back to CPU and 10-50x slower.

What “ElevenLabs alternative” actually means here

ElevenLabs is one product, one rendering pipeline, served from a CDN. VoiceStudio is a router + model catalogue + uniform API surface that lets you swap which TTS engine renders a given request without rewriting your integration. The default engine out of the box is OmniVoice (k2-fsa), which outputs 24 kHz mono and handles the broadest language set. If you want 48 kHz studio-quality output, you switch to VoxCPM2 (pip install "voxcpm>=2.0.3", then OMNIVOICE_TTS_BACKEND=voxcpm2) and pay the cost in supported languages — VoxCPM2 ships 30, OmniVoice ships 646. If you want voice design without any reference audio at all — “young female, warm tone, British accent” from a text description — VoxCPM2 is the only engine that does it. If you want to run inference on a CPU laptop with no dedicated GPU, KittenTTS gives you 8 preset voices and no cloning. If you want a quantized native ggml binary that runs through Vulkan on a discrete GPU, audio.cpp (the Breeze-TTS-2 backend) does that. If you want an Apple-Silicon-only path, MLX-Audio wraps Kokoro/CSM/Dia. The engines span CUDA, ROCm, MPS, Metal, Vulkan, HIP, and CPU; the right one depends on what your hardware actually has and what your language/quality/clone-or-design matrix requires.

That breadth is unusual for a desktop TTS app. Most open-source alternatives are tied to a single model: CosyVoice 3 apps only do CosyVoice, GPT-SoVITS forks only do GPT-SoVITS, Piper only does ONNX. VoiceStudio treats the engine as a backend implementation detail behind a uniform API and lets the Model Catalogue UI surface per-engine status — what runs, why it doesn’t run on this machine, and how to fix it. The routing badge on each engine row (“GPU active”, “CPU fallback”, “CPU”) with the reason shown in small text under the badge is the kind of operational transparency that only happens when someone has personally debugged the third case of “the README said it would work on my Radeon but it doesn’t.”

The engine catalog, as a table

The full engine matrix lives at docs/engines/README.md and is the cleanest summary of what VoiceStudio actually does. Here’s the TTS list, with the engine’s compute target and how you turn it on:

EngineComputeCloningVoice designHow to enable
VoiceStudio (OmniVoice) — defaultCUDA · MPS · CPUyesnoinstalled by default
VoxCPM2CUDA · MPS · CPUyesyespip install "voxcpm>=2.0.3"
MOSS-TTS-NanoCUDA · CPUyes (ref only)noclone + uv pip install -e .
KittenTTSCPUno (8 presets)nopip install kittentts
MLX-Audio (Kokoro, CSM, Dia, …)Apple Siliconmodel-dependentmodel-dependentpip install mlx-audio
CosyVoice 3CUDA · CPUyesnoclone + requirements
GPT-SoVITSexternal serveryesnoits own API server
Sherpa-ONNXCUDA · CPUnonopip install sherpa-onnx + model dir
IndexTTS 2.5CUDA · CPUyes + emotionnoone-click sidecar install
OmniVoice GGUFCUDA · MPS · CPUyesnobundled binary
Supertonic-3CPUno (7 presets)nouv sync --extra supertonic + license
MOSS-TTS-v1.5 (8B)CUDA · CPUyesnoclone + env var
dots.tts (2B)CUDA · CPU (not Windows)yesnoclone + env var
OmniVoice (subprocess)CUDA · MPS · CPUyesnoopt-in pick on MPS; auto via default OmniVoice
PocketTTS (Kyutai)CPU (not Intel Mac)yesnouv sync --extra pockettts + license
Confucius4-TTSCUDA · CPUyesnoclone + env var
audio.cpp (Breeze-TTS-2)CPU + Vulkan/Metal/CUDA/HIP/ROCm where compiledyes + designyesprebuilt binary + env var

The transcription side has its own engine matrix: WhisperX (default for dubbing — word timestamps plus diarization), Faster-Whisper for general transcription, MLX Whisper on Apple Silicon, PyTorch Whisper for ROCm hosts, Parakeet TDT (NeMo) for 25-language fast CPU, Moonshine, FunASR, and sherpa-onnx for live dictation. 17 TTS backends and 9 ASR backends behind one UI is not a typical shape for an open-source project of this size.

The reason the shape matters operationally: when you hit a VRAM floor on one engine, the answer is not “buy a bigger GPU.” It’s “switch to OmniVoice GGUF (quantized native binary, smaller footprint) or audio.cpp (Q8_0 GGUF, ~4.73 GiB) or PocketTTS (CPU).”

The MCP server is the actual agent story

The headline is “open-source ElevenLabs alternative.” The post is actually about the MCP server at http://localhost:3900/mcp/. VoiceStudio ships an MCP server mounted on the running backend so Claude Code, Codex, Pi, or any MCP client can synthesize speech, clone voices, design voices from a text description, transcribe audio, and list available voices — locally, in a voice bound per agent. The trailing slash matters: /mcp/ works on every VoiceStudio version, /mcp works on current backends.

The seven tools the server exposes:

  • generate_speech — text → WAV by default. Uses the agent’s bound voice unless a profile_id is passed.
  • clone_voice — reference audio (base64 or ref_audio_path under the base path) → new voice profile.
  • describe_voice — free-text voice description → the voice-design attributes it maps to (gender, age, pitch, style, accent).
  • design_voice — voice description → new design voice profile with a stable identity and a fixed-seed sample rendered at save time.
  • transcribe — audio (base64 or audio_path) → text across 646 languages.
  • list_voices / list_personalities / list_languages — enumerate what’s available.
  • check_health — backend status plus active GPU device.

The two environment variables that make this useful in production are OMNIVOICE_MCP_OUTPUT_MODE and OMNIVOICE_MCP_BASE_PATH. The first decides whether audio comes back as wav_base64 inline (default resources), as a URL plus optional file path (files), or both (both). Inline base64 in a tool response is roughly ~50 KB of context per second of audio — a 30-second voice reply burns 1.5M tokens of agent context if you let it. Setting OMNIVOICE_MCP_OUTPUT_MODE=files and giving the server a base path keeps every render out of agent context while still returning a path the agent can hand to a player or another tool. The base path is the security boundary: transcribe(audio_path=…) and clone_voice(ref_audio_path=…) read only from inside it, with relative paths resolved against it, absolute paths required to lie within it, and symlinks resolved before the check. Files mode writes only into the same path. No base path, no path arguments — they get refused with a reason.

This is the design choice that distinguishes VoiceStudio’s MCP server from a “wrap a hosted TTS API in MCP.” The model is local, the audio is local, the file paths are sandboxed, and the agent pays zero tokens for the rendered audio unless it asks for the inline bytes explicitly. The “let the agent speak in your voice” claim is the actual claim, not a marketing line — the audio never leaves the machine, and the agent never has to ingest it as context to know it rendered.

There’s also a voice://{profile_id} MCP resource and a history://recent resource (capped at 20 items), plus a discovery document at GET /.well-known/voicestudio-speech that returns voicestudio.speech.v1 with relative URLs (so it works behind Tailscale or a reverse proxy). The local speech platform at port 3900 exposes a voicestudio.speech.v1 WebSocket on /v1/audio/transcriptions/stream for editor extensions and remote mics, an OpenAI-compatible POST /v1/audio/transcriptions HTTP endpoint for files and existing SDKs, and MCP stdio via python -m backend.mcp_shim for clients that need stdin/stdout transport.

Subprocess isolation is what makes 17 engines possible

If you tried to load 17 TTS engines into one Python process, you’d blow up on dependency conflicts before you blew up on VRAM. IndexTTS 2.5 alone requires transformers<5 — installing it in the same environment as the rest of VoiceStudio would break something else. The solution is subprocess isolation: each “sidecar” engine runs in its own Python venv, managed by VoiceStudio, with shared state passed through the backend.

The mechanics of this matter operationally. When you open Model Catalogue and select “Install” on the IndexTTS 2.5 row, the installer:

  1. Checks for uv and at least 12 GB of free space.
  2. Installs the reviewed indextts-2.5 source revision in an isolated Python 3.11 venv.
  3. Downloads the reviewed IndexTeam/IndexTTS-2.5 model revision.
  4. Resumes partial model downloads.
  5. On an AMD ROCm host (OMNIVOICE_TORCH_VARIANT=rocm, or a host already running ROCm torch), installs PyTorch’s ROCm build so the engine uses the GPU — upstream’s own configuration pulls the CUDA wheel, which cannot see an AMD GPU.
  6. Saves OMNIVOICE_INDEXTTS_DIR and activates the engine without a restart.

An app-managed IndexTTS-2 checkout remains intact while 2.5 installs into a separate directory. User-managed clones are never modified or removed. The OMNIVOICE_ENGINE_IMPORT_PROBE_TIMEOUT_S=60 knob (with per-engine overrides OMNIVOICE_INDEXTTS_IMPORT_PROBE_TIMEOUT_S, etc.) controls how long to wait while checking that a sidecar engine’s virtualenv can import the engine. A probe that runs out of time is treated as “unproven” and the venv is used anyway — a slow machine is never told its engine is missing. That’s the right default. Slow ≠ broken.

The subprocess pattern means each engine reports its own health, allocates its own memory, and crashes independently without taking down the host. The shared backend keeps ASR models warm and exposes the audio data plane; the desktop app owns the microphone and the dictation shortcut. Failures are localized.

The 6 GB VRAM floor and the difference between measured and claimed

The OmniVoice default has a recommended VRAM floor of 6 GB on a dedicated GPU. This is the only engine in the catalog with a measured floor — the maintainers actually ran the matrix and recorded what broke. From docs/engines/omnivoice.md:

“On 4 GB cards (GTX 1650 Ti, Quadro P2000 — issues #1226 / #1222) the driver pages to system RAM and a render that should take seconds runs for minutes until the compute budget kills it. The UI warns before you wait; nothing hard-blocks, since short inputs can still fit. A CUDA or ROCm card below the floor is also budgeted as the CPU-class hardware it performs like — the longer OMNIVOICE_CPU_GENERATE_TIMEOUT_S (600 s), not the accelerated 300 s (#1804). Apple Silicon is excluded: unified memory has no dedicated pool to compare against.”

The 600 s vs 300 s split is the operational consequence. A CUDA card that has been auto-detected but doesn’t meet the floor gets the slower timeout budget because the cost of rendering on it is closer to CPU-class hardware than to a working GPU. The user can override (OMNIVOICE_GENERATE_TIMEOUT_S set explicitly turns that off — an explicit value is the base on every device), but the default behavior is “make the budget match the actual performance class.” That’s a deliberate choice about what to do with under-spec hardware, and it’s the kind of thing that doesn’t make it into a README.

The “TTS got much slower after updating” regression postmortem is at issue #1032 and is the operational origin story of the perf guide. Cloning needs a transcript of the reference clip. If the voice profile doesn’t have one, the app runs a full Whisper transcription of the clip — and before v0.3.15, it did that on every single generation. The fix is to auto-transcribe once on the first use and save the transcript to the profile. But profiles that still have an empty transcript (imported from elsewhere, hand-edited) keep paying an ASR pass per generation. The fix is to open the voice editor, check the Transcript box, type or paste what the reference clip says, and save.

The same guide documents the “you aborted a dub earlier” path. Dubbing moves the TTS model to CPU to free VRAM for the ASR model, then moves it back when the transcription finishes. Before v0.3.23, the move-back only ran on the fully successful path, so cancelling a dub, hitting a dub error, or closing the tab mid-transcription left the TTS model stranded on CPU — and every later generation ran there, 10-50x slower with the CPU pegged, until the ~15-minute idle unload happened to fire. Since v0.3.23 the move-back runs on every exit path, and each generation verifies the model is on the expected device and moves it back itself — so no future code path can strand it again.

This is the kind of thing you only find out about by running the app for six months and listening to bug reports.

MIOPEN_FIND_MODE is the unsung 18-second saving

MIOPEN_FIND_MODE=FAST is in the env-var table in docs/performance.md with the most terse possible explanation:

“MIOpen (ROCm) algorithm search. The default exhaustive search costs ~18 s every time it sees a new convolution shape — shape-varying vocoders like IndexTTS’s BigVGAN paid it on nearly every chunk. FAST finds a near-optimal kernel in well under a second; the backend sets it at startup, only MIOpen reads it (ROCm on Linux or Windows; inert on CUDA/MPS/CPU), and an exported value always wins over the default.”

The reason this matters: an MIOpen search that runs 18 s on every chunk turns a fast generation into a slow one. IndexTTS’s BigVGAN vocoder is shape-varying, so every chunk triggered a new search. With MIOPEN_FIND_MODE=FAST, the kernel selection finishes in well under a second. The VoiceStudio backend sets this at startup automatically — but the docs explicitly call out that “an exported value always wins over the default,” which is the right way to write a default that operators can override. This is a one-line config that turns ROCm from “technically works” to “actually fast.” Reading the perf guide is the difference.

OMNIVOICE_FLASHINFER=1 is the CUDA-side counterpart: enables FlashInfer kernels (packed CFG attention, fused RMSNorm/RoPE/GEMM) for ~2x speedup on upstream’s benchmarks. Costs ~roughly half the LLM’s weight size in extra VRAM for fused attention/MLP weight copies. Leave it off on tight-VRAM cards. graph mode also captures CUDA graphs (best when you render one thing at a time). If the package is missing or a kernel fails at runtime, the app logs the reason and falls back to the standard path.

The OmniVoice 20s/15s window rule

The default OmniVoice engine has a documented reference-clip behavior that will surprise anyone who hasn’t read the engine doc carefully. From docs/engines/README.md:

“Voice Clone accepts clips up to 75 seconds and recommends 5–15 seconds of clean speech. How much of a longer clip reaches the model depends on the engine; the Voice Clone screen says which applies, and GET /engines reports it per engine as max_ref_seconds and ref_strategy.”

The default OmniVoice takes clips up to 75 seconds and applies different strategies:

  • VoiceStudio (OmniVoice), OmniVoice (subprocess): up to 20 s, picks the 15 s passage with the most speech and transcribes it (best_window).
  • VoxCPM2: up to 30 s, keeps the first 30 s after edge-silence trim (head).
  • Other engines: not verified, the clip is passed through (null).

The 15s best_window selection is non-trivial. The system runs up to 5 contiguous, bounded transcription passes through the speech-to-text model already installed in Model Catalogue, ranks the 15-second windows by detected-speech density, and uses the highest-density one. The transcript is mandatory for long clips because “a whole-clip transcript cannot match a passage the engine cuts out, so automatic and saved transcripts are ignored when the clip is over the limit.” A transcript sent with a POST /generate request for an OmniVoice clip longer than 20 s — whether an upload or a saved voice — is rejected with [clone_ref_too_long]. Trim both to the same passage, or leave the transcript out.

This is a documented contract, not a bug. The GET /engines endpoint reports max_ref_seconds and ref_strategy per engine so the UI can tell you what your specific engine does. Most TTS APIs treat the reference clip as a black box; VoiceStudio surfaces the strategy explicitly so the user knows why their 30-second clip produced a 15-second clone window.

Why Electron is the only desktop app

v0.5.3 (Sep 17) was the final Tauri release. From the README:

“Electron is the only desktop app and web UI. Version 0.5.3 was the final Tauri release. Existing Tauri users must install Electron separately. The retired Tauri shell and legacy UI entry points have been removed.”

The migration guide is at docs/electron-migration.md. The short version: Tauri reached its final release at v0.5.3 and is archived. Existing Tauri downloads remain available for migration. The shells share the backend, but shell preferences and credentials are not guaranteed to migrate. Recheck devices, shortcuts, theme, backend address and permissions. No automatic installer-to-installer migration is provided. The final Tauri updater feeds retain signed Tauri payloads at immutable URLs — a Tauri updater must never receive an Electron installer (a signed-Tauri install could be replaced by an unsigned-Electron install if the updater doesn’t validate package identity).

Dependency checks ignore inherited PYTHONPATH and PYTHONHOME, matching backend startup. If repair switches away from an unowned environment and a healthy Electron runtime already exists, it is reused without reinstalling dependencies. An explicitly selected runtime is not silently replaced during startup. If that location contains an incomplete environment Electron does not own, choosing setup creates a separate runtime in Electron’s default location instead of modifying or taking ownership of the existing environment.

The reason this matters in production: the maintainer is willing to break the installer path to keep the dependency surface manageable. The retired Tauri shell is gone, not “deprecated.” Docker and browser deployments now use the same maintained interface as the Electron desktop app. The cost is the migration friction; the benefit is that one renderer owns the entire UI surface.

AGPL-3.0 is the deliberate license choice

The license badge is AGPL-3.0. The license notice at the bottom of the README says:

“AGPL-3.0. Models have their own licenses; review them before commercial use. Clone voices only with permission. See license details (LICENSE-NOTICE.md).”

This is the standard dual-license pattern: the application code is AGPL-3.0, and the bundled model weights retain their upstream licenses. The audio.cpp engine is the most explicit case — the code is Apache-2.0 but the Breeze-TTS-2 weights are research and non-commercial use only. From docs/engines/audio-cpp.md:

“Self-hosted outputs inherit the restriction; a BreezeBlue paid subscription covers hosted-platform outputs only, not this engine.”

That’s an important caveat for anyone considering shipping a commercial product that uses Breeze-TTS-2 through VoiceStudio. The PockettTS (Kyutai) and Supertonic-3 engines have similar license requirements — both require a separate uv sync --extra <engine> plus a license review. The Model Catalogue engine row shows a license badge per engine so the user sees the constraint before installing.

The agent-friendly framing: if you’re cloning voices for personal or non-commercial work, the entire catalog is available. If you’re building a product that uses cloned voices commercially, the catalog narrows to the engines whose weights allow it — and you need to read the per-engine license doc carefully. The license split is the operational story the README headline doesn’t tell you.

What I’d want to see next

The roadmap shape that’s missing: there’s no per-language quality bar published. OmniVoice claims 646 languages and 581,000 hours of training data, but the per-language quality varies dramatically. The model card doesn’t publish per-language FLEURS or similar scores, and the harness in docs/benchmarks.md is a “no verified rows yet” placeholder. A docs/languages.md table with the training-hours column (which the repo already has) plus a MOS column or a side-by-side FLEURS score for at least the 30 highest-coverage languages would be a meaningful next addition. ElevenLabs publishes per-language MOS for their multilingual voices; VoiceStudio doesn’t yet, and it’s the missing piece for any team evaluating the project for production multilingual use.

The second thing I’d want: a documented vLLM-OmniVoice serving path. The MCP server is single-tenant (one voice at a time, the bound voice of the calling agent). A team that wants to serve 50 concurrent agents with different voice profiles has no off-the-shelf path yet. The prompt_cache/ directory stores encoded voice references on disk, which is the right substrate for a serving layer, but the layer itself isn’t there.

The third: the bench_pipeline.py harness exists but has zero filled-in rows. The harness is the right tool — uv run python scripts/bench_pipeline.py tts on your hardware, RTF + peak VRAM per engine, app version in the row. The contribution loop is “open a PR with your row.” The table fills from maintainer runs and community submissions. This is the right shape for a multi-engine, multi-accelerator project that refuses to publish a leaderboard — the maintained position is “honest expectations (‘this engine on this class of GPU ≈ this fast’), not a leaderboard.” The community just needs to actually fill the rows.

References and where to dig further

Aniket Karne
DevOps & AI Engineer · Amsterdam
Back to all posts
Reader correspondence

Comments

Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.