Text-to-Speech
Transformers
Chatterbox
tts
lora
indic
indian-languages
speech-synthesis
voice-cloning
Instructions to use reenigne314/chatterbox-indic-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reenigne314/chatterbox-indic-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="reenigne314/chatterbox-indic-lora")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("reenigne314/chatterbox-indic-lora", dtype="auto") - Chatterbox
How to use reenigne314/chatterbox-indic-lora with Chatterbox:
# pip install chatterbox-tts import torchaudio as ta from chatterbox.tts import ChatterboxTTS model = ChatterboxTTS.from_pretrained(device="cuda") text = "Ezreal and Jinx teamed up with Ahri, Yasuo, and Teemo to take down the enemy's Nexus in an epic late-game pentakill." wav = model.generate(text) ta.save("test-1.wav", wav, model.sr) # If you want to synthesize with a different voice, specify the audio prompt AUDIO_PROMPT_PATH="YOUR_FILE.wav" wav = model.generate(text, audio_prompt_path=AUDIO_PROMPT_PATH) ta.save("test-2.wav", wav, model.sr) - Notebooks
- Google Colab
- Kaggle
| FROM nvidia/cuda:12.8.0-runtime-ubuntu22.04 | |
| # Avoid interactive prompts | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONUNBUFFERED=1 | |
| # System deps | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| python3.11 python3.11-venv python3-pip git ffmpeg libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN ln -sf /usr/bin/python3.11 /usr/bin/python3 && \ | |
| ln -sf /usr/bin/python3.11 /usr/bin/python | |
| WORKDIR /app | |
| # 1. Install PyTorch for CUDA 12.8 (Blackwell / Ada / Ampere) | |
| RUN pip install --no-cache-dir \ | |
| torch torchaudio --index-url https://download.pytorch.org/whl/cu128 | |
| # 2. Install chatterbox WITHOUT its pinned torch (--no-deps), then install remaining deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 3. Copy app + LoRA weights | |
| COPY app.py . | |
| COPY checkpoints/ checkpoints/ | |
| COPY tokenizer/ tokenizer/ | |
| COPY conds/ conds/ | |
| # Pre-download base Chatterbox weights at build time (optional, ~2GB) | |
| # Uncomment to bake weights into image (larger image, faster cold start): | |
| # RUN python3 -c "from chatterbox.mtl_tts import ChatterboxMultilingualTTS; ChatterboxMultilingualTTS.from_pretrained('cpu')" | |
| EXPOSE 7860 | |
| CMD ["python3", "app.py", "--device", "auto"] | |