Update README.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,29 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
base_model:
|
| 6 |
- ResembleAI/chatterbox
|
| 7 |
pipeline_tag: text-to-speech
|
|
@@ -31,19 +53,18 @@ pip install -U mlx-audio
|
|
| 31 |
```
|
| 32 |
### Python Example:
|
| 33 |
```python
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
)
|
| 42 |
```
|
| 43 |
|
| 44 |
### Voice Cloning:
|
| 45 |
-
```
|
| 46 |
-
mlx_audio.tts.generate
|
| 47 |
|
| 48 |
generate_audio(
|
| 49 |
text="Hello, this is a test of Chatterbox TTS.",
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
+
- ar
|
| 5 |
+
- da
|
| 6 |
+
- de
|
| 7 |
+
- el
|
| 8 |
+
- en
|
| 9 |
+
- es
|
| 10 |
+
- fi
|
| 11 |
+
- fr
|
| 12 |
+
- he
|
| 13 |
+
- hi
|
| 14 |
+
- it
|
| 15 |
+
- ja
|
| 16 |
+
- ko
|
| 17 |
+
- ms
|
| 18 |
+
- nl
|
| 19 |
+
- no
|
| 20 |
+
- pl
|
| 21 |
+
- pt
|
| 22 |
+
- ru
|
| 23 |
+
- sv
|
| 24 |
+
- sw
|
| 25 |
+
- tr
|
| 26 |
+
- zh
|
| 27 |
base_model:
|
| 28 |
- ResembleAI/chatterbox
|
| 29 |
pipeline_tag: text-to-speech
|
|
|
|
| 53 |
```
|
| 54 |
### Python Example:
|
| 55 |
```python
|
| 56 |
+
from mlx_audio.tts.utils import load_model
|
| 57 |
+
from mlx_audio.tts.generate import generate_audio
|
| 58 |
+
model = load_model("mlx-community/chatterbox-fp16")
|
| 59 |
+
generate_audio(
|
| 60 |
+
model=model, text="Hello, this is a test.",
|
| 61 |
+
file_prefix="test_audio",
|
| 62 |
+
)
|
|
|
|
| 63 |
```
|
| 64 |
|
| 65 |
### Voice Cloning:
|
| 66 |
+
```python
|
| 67 |
+
from mlx_audio.tts.generate import generate_audio
|
| 68 |
|
| 69 |
generate_audio(
|
| 70 |
text="Hello, this is a test of Chatterbox TTS.",
|