herwoww commited on
Commit
3097fd9
1 Parent(s): 179ba80

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -31,7 +31,7 @@ import soundfile as sf
31
 
32
  synthesiser = pipeline("text-to-speech", "MBZUAI/speecht5_tts_clartts_ar")
33
 
34
- embeddings_dataset = load_dataset("herwoww/arabic_xvect_embeddings", split="validation")
35
  speaker_embedding = torch.tensor(embeddings_dataset[105]["speaker_embeddings"]).unsqueeze(0)
36
  # You can replace this embedding with your own as well.
37
 
@@ -56,7 +56,7 @@ vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
56
  inputs = processor(text="لأنه لا يرى أنه على السفه ثم من بعد ذلك حديث منتشر", return_tensors="pt")
57
 
58
  # load xvector containing speaker's voice characteristics from a dataset
59
- embeddings_dataset = load_dataset("herwoww/arabic_xvect_embeddings", split="validation")
60
  speaker_embedding = torch.tensor(embeddings_dataset[105]["speaker_embeddings"]).unsqueeze(0)
61
 
62
  speech = model.generate_speech(inputs["input_ids"], speaker_embeddings, vocoder=vocoder)
 
31
 
32
  synthesiser = pipeline("text-to-speech", "MBZUAI/speecht5_tts_clartts_ar")
33
 
34
+ embeddings_dataset = load_dataset("herwoww/arabic_xvector_embeddings", split="validation")
35
  speaker_embedding = torch.tensor(embeddings_dataset[105]["speaker_embeddings"]).unsqueeze(0)
36
  # You can replace this embedding with your own as well.
37
 
 
56
  inputs = processor(text="لأنه لا يرى أنه على السفه ثم من بعد ذلك حديث منتشر", return_tensors="pt")
57
 
58
  # load xvector containing speaker's voice characteristics from a dataset
59
+ embeddings_dataset = load_dataset("herwoww/arabic_xvector_embeddings", split="validation")
60
  speaker_embedding = torch.tensor(embeddings_dataset[105]["speaker_embeddings"]).unsqueeze(0)
61
 
62
  speech = model.generate_speech(inputs["input_ids"], speaker_embeddings, vocoder=vocoder)