Instructions to use mlx-community/Chatterbox-Turbo-TTS-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/Chatterbox-Turbo-TTS-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Chatterbox-Turbo-TTS-8bit mlx-community/Chatterbox-Turbo-TTS-8bit
- Chatterbox
How to use mlx-community/Chatterbox-Turbo-TTS-8bit 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
- Local Apps Settings
- LM Studio
File size: 1,192 Bytes
a8e6f3d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | ---
library_name: mlx-audio-plus
base_model:
- ResembleAI/chatterbox-turbo
tags:
- mlx
- tts
- chatterbox
pipeline_tag: text-to-speech
language:
- en
---
# Chatterbox-Turbo-TTS-8bit
This model was converted to MLX format from [ResembleAI/chatterbox-turbo](https://huggingface.co/ResembleAI/chatterbox-turbo) using [mlx-audio-plus](https://github.com/DePasqualeOrg/mlx-audio-plus) version **0.1.6**.
This model uses **8-bit quantization** for the T3 GPT2 backbone, reducing memory usage while maintaining audio quality.
**Note:** This model requires the S3Tokenizer weights from [mlx-community/S3TokenizerV2](https://huggingface.co/mlx-community/S3TokenizerV2), which will be downloaded automatically.
## Use with mlx-audio-plus
```bash
pip install -U mlx-audio-plus
```
### Command line
```bash
mlx_audio.tts --model /path/to/Chatterbox-Turbo-TTS-8bit --text "Hello, this is Chatterbox Turbo on MLX!" --ref_audio reference.wav
```
### Python
```python
from mlx_audio.tts.generate import generate_audio
generate_audio(
text="Hello, this is Chatterbox Turbo on MLX!",
model="/path/to/Chatterbox-Turbo-TTS-8bit",
ref_audio="reference.wav",
file_prefix="output",
)
```
|