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