Update README.md
Browse files
README.md
CHANGED
@@ -32,7 +32,7 @@ import soundfile as sf
|
|
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[
|
36 |
# You can replace this embedding with your own as well.
|
37 |
|
38 |
speech = synthesiser("ูุฃูู ูุง ูุฑู ุฃูู ุนูู ุงูุณูู ุซู
ู
ู ุจุนุฏ ุฐูู ุญุฏูุซ ู
ูุชุดุฑ", forward_params={"speaker_embeddings": speaker_embedding})
|
@@ -57,7 +57,7 @@ inputs = processor(text="ูุฃูู ูุง ูุฑู ุฃูู ุนูู ุงูุณูู ุซู
ู
ู
|
|
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[
|
61 |
|
62 |
speech = model.generate_speech(inputs["input_ids"], speaker_embeddings, vocoder=vocoder)
|
63 |
|
|
|
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 |
|
38 |
speech = synthesiser("ูุฃูู ูุง ูุฑู ุฃูู ุนูู ุงูุณูู ุซู
ู
ู ุจุนุฏ ุฐูู ุญุฏูุซ ู
ูุชุดุฑ", forward_params={"speaker_embeddings": speaker_embedding})
|
|
|
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)
|
63 |
|