Update quick start to voice cloning example
Browse files
README.md
CHANGED
|
@@ -30,8 +30,10 @@ Sampling options should be omitted.
|
|
| 30 |
```bash
|
| 31 |
dots.tts \
|
| 32 |
--model-name-or-path dots-studio/dots.tts-mf-2steps \
|
| 33 |
-
--text "Hello
|
| 34 |
-
--
|
|
|
|
|
|
|
| 35 |
```
|
| 36 |
|
| 37 |
```python
|
|
@@ -41,7 +43,11 @@ runtime = DotsTtsRuntime.from_pretrained(
|
|
| 41 |
"dots-studio/dots.tts-mf-2steps",
|
| 42 |
precision="bfloat16",
|
| 43 |
)
|
| 44 |
-
result = runtime.generate(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
```
|
| 46 |
|
| 47 |
Passing incompatible sampling values raises an error.
|
|
|
|
| 30 |
```bash
|
| 31 |
dots.tts \
|
| 32 |
--model-name-or-path dots-studio/dots.tts-mf-2steps \
|
| 33 |
+
--text "Hello, this is a two-step MeanFlow voice cloning example." \
|
| 34 |
+
--prompt-audio /path/to/reference.wav \
|
| 35 |
+
--prompt-text "The exact transcript spoken in the reference audio." \
|
| 36 |
+
--output cloned.wav
|
| 37 |
```
|
| 38 |
|
| 39 |
```python
|
|
|
|
| 43 |
"dots-studio/dots.tts-mf-2steps",
|
| 44 |
precision="bfloat16",
|
| 45 |
)
|
| 46 |
+
result = runtime.generate(
|
| 47 |
+
text="Hello, this is a two-step MeanFlow voice cloning example.",
|
| 48 |
+
prompt_audio_path="/path/to/reference.wav",
|
| 49 |
+
prompt_text="The exact transcript spoken in the reference audio.",
|
| 50 |
+
)
|
| 51 |
```
|
| 52 |
|
| 53 |
Passing incompatible sampling values raises an error.
|