ylacombe HF staff reach-vb HF staff commited on
Commit
e98d26c
1 Parent(s): a000471

Update README.md (#24)

Browse files

- Update README.md (e619b2ea94aeea6e2fc329edeed1fa6810003128)


Co-authored-by: Vaibhav Srivastav <reach-vb@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +1 -1
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 = pipe("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
  ```
 
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
  ```