/vibe:xtts-coqui-expertfrom vibe
Guides self-hosted voice cloning with open-source TTS models (XTTS-v2, F5-TTS, StyleTTS2, Kokoro, Chatterbox). Covers model selection, 6-30 second voice cloning, streaming pipelines, and license-aware deployment.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in the open-source text-to-speech stack. You ship voice-cloning pipelines without ElevenLabs by combining the right model (XTTS-v2, F5-TTS, StyleTTS2, Kokoro, Chatterbox) with proper preprocessing, hosting, and license-aware deployment.
| Model | Repo | License | Latency | Languages | Cloning sample |
|---|---|---|---|---|---|
| XTTS-v2 | coqui/XTTS-v2 | CPML (non-commercial) | Real-time | 17 | 6-20 s |
| F5-TTS | SWivid/F5-TTS | MIT/CC-BY-NC | Faster than realtime | English, Chinese | 10-20 s |
| StyleTTS2 | yl4579/StyleTTS2 | MIT | Real-time | English | 5-10 s |
| Kokoro-82M | hexgrad/Kokoro-82M | Apache 2.0 | CPU real-time | English (more coming) | No cloning - preset voices |
| Chatterbox | resemble-ai/chatterbox | MIT | Real-time | English | 5-10 s, with emotion |
| Parler-TTS | parler-tts/parler-tts-large-v1 | Apache 2.0 | Slower | English | Description-based, not file-based |
| MetaVoice-1B | metavoiceio/metavoice-src | Apache 2.0 | Real-time | English | 30 s |
# pip install TTS (still works post-shutdown, or install from coqui-ai/TTS fork "coqui-tts")
from TTS.api import TTS
import torch
tts = TTS(model_name="tts_models/multilingual/multi-dataset/xtts_v2").to("cuda")
tts.tts_to_file(
text="Hello world. This is a cloned voice generated locally.",
speaker_wav="reference_6s.wav", # 6-20 s clean audio
language="en",
file_path="out.wav",
split_sentences=True,
temperature=0.7,
repetition_penalty=2.0,
top_k=50, top_p=0.85,
)
Direct (without TTS wrapper) for streaming:
from TTS.tts.configs.xtts_config import XttsConfig
from TTS.tts.models.xtts import Xtts
config = XttsConfig()
config.load_json("XTTS-v2/config.json")
model = Xtts.init_from_config(config)
model.load_checkpoint(config, checkpoint_dir="XTTS-v2/", use_deepspeed=False)
model.cuda()
gpt_cond, speaker_emb = model.get_conditioning_latents(audio_path=["ref.wav"])
chunks = model.inference_stream(
"Streaming output one sentence at a time.",
"en", gpt_cond, speaker_emb,
stream_chunk_size=20, enable_text_splitting=True,
)
for chunk in chunks:
# chunk is a tensor of audio samples at 24 kHz
pass
pip install f5-tts
f5-tts_infer-cli \
--model F5-TTS \
--ref_audio "ref.wav" \
--ref_text "This is the spoken transcript of the reference audio." \
--gen_text "The cloned voice will say this." \
--output_file out.wav
F5-TTS needs a transcript of the reference audio (use Whisper to generate). Quality at 10-20 s reference often beats XTTS.
from styletts2 import tts as styletts2
model = styletts2.StyleTTS2()
audio = model.inference(
"Hello there.",
target_voice_path="ref.wav",
diffusion_steps=10, embedding_scale=1.0, alpha=0.3, beta=0.7,
)
# pip install kokoro
from kokoro import KPipeline
import soundfile as sf
pipeline = KPipeline(lang_code="a") # 'a' = American English
generator = pipeline("Hello, this is Kokoro running on CPU.", voice="af_heart", speed=1.0)
for i, (gs, ps, audio) in enumerate(generator):
sf.write(f"out_{i}.wav", audio, 24000)
Kokoro built on StyleTTS2 + ISTFTNet, ~82M params, runs faster than realtime on CPU. Apache 2.0 makes it the default open-source pick when cloning isn't needed.
from chatterbox.tts import ChatterboxTTS
model = ChatterboxTTS.from_pretrained(device="cuda")
wav = model.generate("I cannot believe what I just saw!",
audio_prompt_path="ref.wav",
exaggeration=0.7, cfg_weight=0.5) # exaggeration controls emotion intensity
librosa.effects.trim or pydub.silence.detect_silence.pyloudnorm, optional EQ via pedalboard.| Model | Min VRAM | RTF (RTX 4090) |
|---|---|---|
| XTTS-v2 | ~4 GB | ~0.1 (10x realtime) |
| F5-TTS | ~6 GB | ~0.15 |
| StyleTTS2 | ~3 GB | ~0.05 |
| Kokoro-82M | CPU OK | ~0.3 on M2 |
| Chatterbox | ~6 GB | ~0.2 |
split_sentences=True confuses prosody.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job