davidmezzetti
commited on
Commit
·
322afd6
1
Parent(s):
ed04ff9
Update README
Browse files
README.md
CHANGED
@@ -30,7 +30,7 @@ from txtai.pipeline import TextToSpeech
|
|
30 |
tts = TextToSpeech("NeuML/vctk-vits-onnx")
|
31 |
|
32 |
# Generate speech with speaker id
|
33 |
-
speech, rate = tts("Say something here", speaker=
|
34 |
|
35 |
# Write to file
|
36 |
sf.write("out.wav", speech, rate)
|
@@ -67,7 +67,7 @@ tokenizer = TTSTokenizer(config["token"]["list"])
|
|
67 |
inputs = tokenizer("Say something here")
|
68 |
|
69 |
# Generate speech
|
70 |
-
outputs = model.run(None, {"text": inputs, "sids": np.array([
|
71 |
|
72 |
# Write to file
|
73 |
sf.write("out.wav", outputs[0], 22050)
|
|
|
30 |
tts = TextToSpeech("NeuML/vctk-vits-onnx")
|
31 |
|
32 |
# Generate speech with speaker id
|
33 |
+
speech, rate = tts("Say something here", speaker=15)
|
34 |
|
35 |
# Write to file
|
36 |
sf.write("out.wav", speech, rate)
|
|
|
67 |
inputs = tokenizer("Say something here")
|
68 |
|
69 |
# Generate speech
|
70 |
+
outputs = model.run(None, {"text": inputs, "sids": np.array([15])})
|
71 |
|
72 |
# Write to file
|
73 |
sf.write("out.wav", outputs[0], 22050)
|