Chatterbox TTS
Collection
Chatterbox and Chatterbox Turbo By ResembleAI • 10 items • Updated • 7
Run mlx-community/chatterbox-5bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/mlx-community/chatterbox-5bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/mlx-community/chatterbox-5bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use mlx-community/chatterbox-5bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/chatterbox-5bit --local-dir chatterbox-5bit
This model was converted to MLX format from ResembleAI/chatterbox using mlx-audio version 0.2.7.
Refer to the original model card for more details on the model.
pip install -U mlx-audio
python -m mlx_audio.tts.generate --model mlx-community/chatterbox-5bit --text "Hello, this is a test."
from mlx_audio.tts.utils import load_model
from mlx_audio.tts.generate import generate_audio
model = load_model("mlx-community/chatterbox-5bit")
generate_audio(
model=model, text="Hello, this is a test.",
file_prefix="test_audio",
)
from mlx_audio.tts.generate import generate_audio
generate_audio(
text="Hello, this is a test of Chatterbox TTS.",
model="mlx-community/chatterbox-5bit",
ref_audio="path_to_file.wav",
ref_text="Text transcript", # Optional
file_prefix="vc_output",
)
Generate speech in 23 languages by specifying the lang_code parameter. The model automatically handles pronunciation, intonation, and language-specific phonemes.
from mlx_audio.tts.generate import generate_audio
generate_audio(
text="Olá, tudo bem?",
model="mlx-community/chatterbox-5bit",
lang_code="pt",
file_prefix="multilingual_output",
)
| Code | Language | Code | Language | Code | Language |
|---|---|---|---|---|---|
ar |
Arabic | he |
Hebrew | no |
Norwegian |
da |
Danish | hi |
Hindi | pl |
Polish |
de |
German | it |
Italian | pt |
Portuguese |
el |
Greek | ja |
Japanese | ru |
Russian |
en |
English | ko |
Korean | sv |
Swedish |
es |
Spanish | ms |
Malay | sw |
Swahili |
fi |
Finnish | nl |
Dutch | tr |
Turkish |
fr |
French | zh |
Chinese |
5-bit
Base model
ResembleAI/chatterbox
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/chatterbox-5bit --local-dir chatterbox-5bit