davidmezzetti commited on
Commit
ed04ff9
1 Parent(s): 3d735e1

Update README

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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, 22050)
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