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

Update README.md

Browse files
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
  ```