add stop duration option
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def text_to_speech(text,stop_duration_text):
|
|
11 |
# prevent too long text
|
12 |
if len(text) > 500:
|
13 |
text = text[:500]
|
14 |
-
|
15 |
text = nat_normalize_text(text)
|
16 |
mel = text2mel(
|
17 |
text,
|
|
|
11 |
# prevent too long text
|
12 |
if len(text) > 500:
|
13 |
text = text[:500]
|
14 |
+
stop_duration_float = float(stop_duration_text)
|
15 |
text = nat_normalize_text(text)
|
16 |
mel = text2mel(
|
17 |
text,
|