Update app.py
Browse files
app.py
CHANGED
@@ -110,11 +110,11 @@ def tts_fn(slider_value, input_text):
|
|
110 |
speaker_embedding = torch.tensor(speaker_embedding).unsqueeze(0)
|
111 |
|
112 |
phonemes = PersianG2Pconverter.transliterate(input_text, tidy = False, secret = True)
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
|
117 |
-
text
|
118 |
|
119 |
print("sentence:", input_text)
|
120 |
print("sentence phonemes:", text)
|
|
|
110 |
speaker_embedding = torch.tensor(speaker_embedding).unsqueeze(0)
|
111 |
|
112 |
phonemes = PersianG2Pconverter.transliterate(input_text, tidy = False, secret = True)
|
113 |
+
text = "</s>"
|
114 |
+
for i in phonemes.replace(' .', '').split(" "):
|
115 |
+
text += i + " <pad> "
|
116 |
|
117 |
+
text += "</s>"
|
118 |
|
119 |
print("sentence:", input_text)
|
120 |
print("sentence phonemes:", text)
|