add reference audio download, use ljspeech.wav
Browse files
README.md
CHANGED
|
@@ -66,13 +66,18 @@ cd tada/apple
|
|
| 66 |
uv venv && uv pip install -e .
|
| 67 |
```
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
### Python
|
| 70 |
|
| 71 |
```python
|
| 72 |
from mlx_tada import TadaForCausalLM, save_wav
|
| 73 |
|
| 74 |
model = TadaForCausalLM.from_pretrained("HumeAI/mlx-tada-1b", quantize=4)
|
| 75 |
-
ref = model.load_reference("
|
| 76 |
out = model.generate("Hello, this is a test of TADA speech synthesis.", ref)
|
| 77 |
save_wav(out.audio, "output.wav")
|
| 78 |
```
|
|
@@ -96,7 +101,7 @@ model = TadaForCausalLM.from_weights("./weights/1b", quantize=4)
|
|
| 96 |
```bash
|
| 97 |
python -m mlx_tada.generate \
|
| 98 |
--weights ./weights/1b \
|
| 99 |
-
--audio
|
| 100 |
--text "Hello, this is a test of TADA speech synthesis." \
|
| 101 |
--quantize 4 \
|
| 102 |
--output output.wav
|
|
|
|
| 66 |
uv venv && uv pip install -e .
|
| 67 |
```
|
| 68 |
|
| 69 |
+
Download a reference audio clip:
|
| 70 |
+
```bash
|
| 71 |
+
curl -O "https://storage.googleapis.com/hume_reference_speakers/ljspeech.wav"
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
### Python
|
| 75 |
|
| 76 |
```python
|
| 77 |
from mlx_tada import TadaForCausalLM, save_wav
|
| 78 |
|
| 79 |
model = TadaForCausalLM.from_pretrained("HumeAI/mlx-tada-1b", quantize=4)
|
| 80 |
+
ref = model.load_reference("ljspeech.wav")
|
| 81 |
out = model.generate("Hello, this is a test of TADA speech synthesis.", ref)
|
| 82 |
save_wav(out.audio, "output.wav")
|
| 83 |
```
|
|
|
|
| 101 |
```bash
|
| 102 |
python -m mlx_tada.generate \
|
| 103 |
--weights ./weights/1b \
|
| 104 |
+
--audio ljspeech.wav \
|
| 105 |
--text "Hello, this is a test of TADA speech synthesis." \
|
| 106 |
--quantize 4 \
|
| 107 |
--output output.wav
|