Instructions to use BricksDisplay/Chatterbox-Multilingual-TTS-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chatterbox
How to use BricksDisplay/Chatterbox-Multilingual-TTS-GGUF 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
- llama.cpp
How to use BricksDisplay/Chatterbox-Multilingual-TTS-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M
Use Docker
docker model run hf.co/BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use BricksDisplay/Chatterbox-Multilingual-TTS-GGUF with Ollama:
ollama run hf.co/BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use BricksDisplay/Chatterbox-Multilingual-TTS-GGUF with Docker Model Runner:
docker model run hf.co/BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M
- Lemonade
How to use BricksDisplay/Chatterbox-Multilingual-TTS-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BricksDisplay/Chatterbox-Multilingual-TTS-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Chatterbox-Multilingual-TTS-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Model card: Python usage (codec_cpp.TTS)
Browse files
README.md
CHANGED
|
@@ -100,6 +100,30 @@ Clone a voice from a few seconds of clean speech (it works across languages):
|
|
| 100 |
All `tts-cli` options (voices, voice cloning, sampling, GPU) are described in the [codec.cpp README](https://github.com/mybigday/codec.cpp#text-to-speech).
|
| 101 |
|
| 102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
## React Native (llama.rn)
|
| 104 |
|
| 105 |
[llama.rn](https://github.com/mybigday/llama.rn) loads the same two files on iOS and Android:
|
|
|
|
| 100 |
All `tts-cli` options (voices, voice cloning, sampling, GPU) are described in the [codec.cpp README](https://github.com/mybigday/codec.cpp#text-to-speech).
|
| 101 |
|
| 102 |
|
| 103 |
+
## Python
|
| 104 |
+
|
| 105 |
+
The `codec_cpp` package runs the same pipeline (it builds codec.cpp with its
|
| 106 |
+
bundled llama.cpp, so it needs CMake and a C++ compiler):
|
| 107 |
+
|
| 108 |
+
```bash
|
| 109 |
+
pip install "codec-cpp @ git+https://github.com/mybigday/codec.cpp" huggingface_hub soundfile
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
```python
|
| 113 |
+
import codec_cpp, soundfile
|
| 114 |
+
from huggingface_hub import hf_hub_download
|
| 115 |
+
|
| 116 |
+
tts = codec_cpp.TTS(hf_hub_download("BricksDisplay/Chatterbox-Multilingual-TTS-GGUF", "chatterbox-mtl-t3-q8_0.gguf"),
|
| 117 |
+
hf_hub_download("BricksDisplay/Chatterbox-Multilingual-TTS-GGUF", "chatterbox-mtl-codec-q8_0.gguf"))
|
| 118 |
+
audio, sr = tts.synthesize("[en]hello, this is chatterbox speaking.")
|
| 119 |
+
soundfile.write("out.wav", audio, sr)
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
`tts.voices()` lists the builtin voices; `ref_audio=` clones a voice where the
|
| 123 |
+
model supports it; `tts.stream(text)` yields audio as it is generated. More in
|
| 124 |
+
the [Python docs](https://github.com/mybigday/codec.cpp/tree/main/python).
|
| 125 |
+
|
| 126 |
+
|
| 127 |
## React Native (llama.rn)
|
| 128 |
|
| 129 |
[llama.rn](https://github.com/mybigday/llama.rn) loads the same two files on iOS and Android:
|