Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,18 @@ def clean_text(text):
|
|
11 |
|
12 |
return cleaned_text
|
13 |
def greet(text):
|
14 |
-
|
15 |
text=clean_text(text).strip()
|
16 |
-
|
|
|
|
|
|
|
|
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
21 |
|
22 |
|
23 |
|
|
|
11 |
|
12 |
return cleaned_text
|
13 |
def greet(text):
|
14 |
+
|
15 |
text=clean_text(text).strip()
|
16 |
+
|
17 |
+
for t in text.split(' '):
|
18 |
+
try:
|
19 |
+
if t.strip()!='':
|
20 |
+
wave = model.tts(t,vowelizer='shakkelha')
|
21 |
|
22 |
+
yield 22025,wave.view(-1).cpu().numpy()
|
23 |
+
except error:pass
|
24 |
+
|
25 |
+
|
26 |
|
27 |
|
28 |
|