davidmezzetti
commited on
Commit
•
ed04ff9
1
Parent(s):
3d735e1
Update README
Browse files
README.md
CHANGED
@@ -30,10 +30,10 @@ from txtai.pipeline import TextToSpeech
|
|
30 |
tts = TextToSpeech("NeuML/vctk-vits-onnx")
|
31 |
|
32 |
# Generate speech with speaker id
|
33 |
-
speech = tts("Say something here", speaker=42)
|
34 |
|
35 |
# Write to file
|
36 |
-
sf.write("out.wav", speech,
|
37 |
```
|
38 |
|
39 |
## Usage with ONNX
|
|
|
30 |
tts = TextToSpeech("NeuML/vctk-vits-onnx")
|
31 |
|
32 |
# Generate speech with speaker id
|
33 |
+
speech, rate = tts("Say something here", speaker=42)
|
34 |
|
35 |
# Write to file
|
36 |
+
sf.write("out.wav", speech, rate)
|
37 |
```
|
38 |
|
39 |
## Usage with ONNX
|