Multilingual Text-to-Speech with voice cloning capabilities supporting 23 languages
Project description
title: Chatterbox-Multilingual-TTS emoji: 🌎 colorFrom: indigo colorTo: blue sdk: gradio sdk_version: 5.29.0 app_file: app.py pinned: false short_description: Chatterbox TTS supporting 23 languages
Chatterbox TTS
A high-quality Multilingual Text-to-Speech (TTS) library with voice cloning capabilities, supporting 23 languages.
Features
- 🗣️ Support for 23 languages
- 🎙️ Voice cloning from reference audio
- 🚀 Fast inference with PyTorch
- 🎯 High-quality, natural-sounding speech
- 🔌 Simple Python API
Installation
pip install chatterbox-tts
Note: This package requires PyTorch. For optimal performance, install the appropriate version for your system from PyTorch's official website.
Quick Start
from chatterbox import ChatterboxMultilingualTTS, SUPPORTED_LANGUAGES
import torch
# Check available languages
print("Supported languages:", list(SUPPORTED_LANGUAGES.keys()))
# Initialize the TTS model
device = "cuda" if torch.cuda.is_available() else "cpu"
tts = ChatterboxMultilingualTTS.from_local(device=device)
# Generate speech from text
text = "Hello, this is a test of the Chatterbox TTS system."
language = "en" # English
# Generate audio
sample_rate, audio = tts.synthesize(
text=text,
language=language,
temperature=0.8,
cfg_scale=0.5,
exaggeration=0.5
)
# Save to file
import soundfile as sf
sf.write("output.wav", audio, sample_rate)
Advanced Usage
Voice Cloning
# Generate speech in the style of a reference audio
reference_audio = "path/to/reference_audio.wav"
sample_rate, audio = tts.synthesize(
text="This will sound like the reference speaker.",
language="en",
reference_audio=reference_audio,
temperature=0.7,
cfg_scale=0.7
)
Available Languages
Chatterbox TTS supports the following languages:
- English (en)
- Spanish (es)
- French (fr)
- German (de)
- Italian (it)
- Portuguese (pt)
- Polish (pl)
- Russian (ru)
- Japanese (ja)
- Korean (ko)
- Chinese (zh)
- And more... (23 languages total)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tts_chatterbox-0.1.0.tar.gz.
File metadata
- Download URL: tts_chatterbox-0.1.0.tar.gz
- Upload date:
- Size: 73.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f9cb697a587856c2c7e98fd04728b34549841e72b118fb15b79624227a8a7f3
|
|
| MD5 |
096dfb583b2e73c0bbf688877f9e2409
|
|
| BLAKE2b-256 |
d97e587e4d5a47b1a2013e023a12bae3f757839afb4706114785c56d6f14fbcf
|
File details
Details for the file tts_chatterbox-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tts_chatterbox-0.1.0-py3-none-any.whl
- Upload date:
- Size: 97.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47b0aa09dd8e17ed8567fc5349f7d46926c19ac3b47f6284bfaca274640356c7
|
|
| MD5 |
1ed9fa708f8e7f99f64f3d548b89f16a
|
|
| BLAKE2b-256 |
cef745edd66ee7bfd4c5f71289773007dc6477d82109e6bec8b19872954947e8
|