Instructions to use Salupala/SonicVox-Multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chatterbox
How to use Salupala/SonicVox-Multilingual 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
update readme
Browse files
README.md
CHANGED
|
@@ -1,58 +1,85 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
language:
|
| 4 |
-
-
|
| 5 |
tags:
|
| 6 |
-
- chatterbox
|
| 7 |
- text-to-speech
|
| 8 |
- tts
|
| 9 |
- multilingual
|
| 10 |
-
- single-language-tts
|
| 11 |
- voice-cloning
|
|
|
|
|
|
|
| 12 |
- chatterbox-v3
|
| 13 |
pipeline_tag: text-to-speech
|
| 14 |
base_model: ResembleAI/chatterbox
|
| 15 |
-
base_model_relation: finetune
|
| 16 |
---
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
|
|
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
|
|
|
| 33 |
|
| 34 |
-
|
| 35 |
-
- `s3gen_v3.pt` / `s3gen_v3.safetensors`: V3 S3Gen speech decoder checkpoint.
|
| 36 |
-
- `grapheme_mtl_merged_expanded_v1.json`: multilingual tokenizer config.
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
| 41 |
-
- Chatterbox language ID: `pt`
|
| 42 |
|
| 43 |
-
|
|
|
|
|
|
|
| 44 |
|
| 45 |
-
|
| 46 |
-
- Source checkpoint: `t3_137400.pth.tar`
|
| 47 |
-
- Tensor count: `292`
|
| 48 |
-
- Dtype: `float32`
|
| 49 |
-
- Text embedding shape: `(2454, 1024)`
|
| 50 |
-
- Speech embedding shape: `(8194, 1024)`
|
| 51 |
-
- Size: `2143990296` bytes
|
| 52 |
-
- SHA256: `074aaf65255eb9cb960288f7cc72e09d3b5008f6e0b14868c0d4e5b0bd7cbb6c`
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
-
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
language:
|
| 4 |
+
- multilingual
|
| 5 |
tags:
|
|
|
|
| 6 |
- text-to-speech
|
| 7 |
- tts
|
| 8 |
- multilingual
|
|
|
|
| 9 |
- voice-cloning
|
| 10 |
+
- speech-synthesis
|
| 11 |
+
- chatterbox
|
| 12 |
- chatterbox-v3
|
| 13 |
pipeline_tag: text-to-speech
|
| 14 |
base_model: ResembleAI/chatterbox
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# SonicVox-Multilingual
|
| 18 |
+
|
| 19 |
+
๐๏ธ **SonicVox-Multilingual** is a multilingual Text-to-Speech (TTS) model
|
| 20 |
+
built on top of **Chatterbox Multilingual** by Resemble AI.
|
| 21 |
+
|
| 22 |
+
It is designed to generate natural, expressive speech across multiple
|
| 23 |
+
languages with support for **zero-shot voice cloning** using a reference
|
| 24 |
+
audio sample.
|
| 25 |
+
|
| 26 |
+
## โจ Features
|
| 27 |
|
| 28 |
+
- ๐ Multilingual Text-to-Speech
|
| 29 |
+
- ๐๏ธ Natural and expressive speech generation
|
| 30 |
+
- ๐ฃ๏ธ Zero-shot voice cloning
|
| 31 |
+
- ๐ High-quality speech synthesis
|
| 32 |
+
- ๐๏ธ Voice conditioning using reference audio
|
| 33 |
+
- โก GPU-accelerated inference
|
| 34 |
+
- ๐งฉ Based on Chatterbox Multilingual V3
|
| 35 |
|
| 36 |
+
## ๐ Supported Languages
|
| 37 |
|
| 38 |
+
SonicVox-Multilingual is based on the multilingual Chatterbox model.
|
| 39 |
|
| 40 |
+
Supported languages depend on the underlying checkpoint and include
|
| 41 |
+
multiple languages such as:
|
| 42 |
|
| 43 |
+
- English
|
| 44 |
+
- Spanish
|
| 45 |
+
- French
|
| 46 |
+
- German
|
| 47 |
+
- Italian
|
| 48 |
+
- Portuguese
|
| 49 |
+
- Hindi
|
| 50 |
+
- Telugu
|
| 51 |
+
- Tamil
|
| 52 |
+
- Kannada
|
| 53 |
+
- Malayalam
|
| 54 |
+
- Chinese
|
| 55 |
+
- Japanese
|
| 56 |
+
- Korean
|
| 57 |
+
- Arabic
|
| 58 |
+
- Russian
|
| 59 |
+
- Turkish
|
| 60 |
+
- Polish
|
| 61 |
|
| 62 |
+
> Always verify the supported language IDs with the specific Chatterbox
|
| 63 |
+
> checkpoint being used.
|
| 64 |
|
| 65 |
+
## ๐ค Voice Cloning
|
|
|
|
|
|
|
| 66 |
|
| 67 |
+
SonicVox-Multilingual supports voice cloning using a reference audio file.
|
| 68 |
|
| 69 |
+
Example:
|
|
|
|
| 70 |
|
| 71 |
+
```python
|
| 72 |
+
import torchaudio as ta
|
| 73 |
+
from chatterbox.mtl_tts import ChatterboxMultilingualTTS
|
| 74 |
|
| 75 |
+
model = ChatterboxMultilingualTTS.from_pretrained(device="cuda")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
+
text = "Welcome to SonicVox Multilingual."
|
| 78 |
|
| 79 |
+
wav = model.generate(
|
| 80 |
+
text,
|
| 81 |
+
language_id="en",
|
| 82 |
+
audio_prompt_path="reference.wav"
|
| 83 |
+
)
|
| 84 |
|
| 85 |
+
ta.save("output.wav", wav, model.sr)
|