change max length
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def create_tts_fn(model, hps, speaker_ids):
|
|
| 45 |
def tts_fn(text, speaker, speed, is_symbol):
|
| 46 |
if limitation:
|
| 47 |
text_len = len(re.sub("\[([A-Z]{2})\]", "", text))
|
| 48 |
-
max_len =
|
| 49 |
if is_symbol:
|
| 50 |
max_len *= 3
|
| 51 |
if text_len > max_len:
|
|
|
|
| 45 |
def tts_fn(text, speaker, speed, is_symbol):
|
| 46 |
if limitation:
|
| 47 |
text_len = len(re.sub("\[([A-Z]{2})\]", "", text))
|
| 48 |
+
max_len = 900
|
| 49 |
if is_symbol:
|
| 50 |
max_len *= 3
|
| 51 |
if text_len > max_len:
|