Update README.md (#24)
Browse files- Update README.md (e619b2ea94aeea6e2fc329edeed1fa6810003128)
Co-authored-by: Vaibhav Srivastav <reach-vb@users.noreply.huggingface.co>
README.md
CHANGED
@@ -71,7 +71,7 @@ embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validat
|
|
71 |
speaker_embedding = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)
|
72 |
# You can replace this embedding with your own as well.
|
73 |
|
74 |
-
speech =
|
75 |
|
76 |
sf.write("speech.wav", speech["audio"], samplerate=speech["sampling_rate"])
|
77 |
```
|
|
|
71 |
speaker_embedding = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)
|
72 |
# You can replace this embedding with your own as well.
|
73 |
|
74 |
+
speech = synthesiser("Hello, my dog is cooler than you!", forward_params={"speaker_embeddings": speaker_embedding})
|
75 |
|
76 |
sf.write("speech.wav", speech["audio"], samplerate=speech["sampling_rate"])
|
77 |
```
|