Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def create_vc_fn(model_name, tgt_sr, net_g, vc, if_f0, version, file_index):
|
|
89 |
if sampling_rate != 16000:
|
90 |
audio = librosa.resample(audio, orig_sr=sampling_rate, target_sr=16000)
|
91 |
elif vc_audio_mode == "TTS Audio":
|
92 |
-
if len(tts_text) >
|
93 |
return "Text is too long", None
|
94 |
if tts_text is None or tts_voice is None:
|
95 |
return "You need to enter text and select a voice", None
|
|
|
89 |
if sampling_rate != 16000:
|
90 |
audio = librosa.resample(audio, orig_sr=sampling_rate, target_sr=16000)
|
91 |
elif vc_audio_mode == "TTS Audio":
|
92 |
+
if len(tts_text) > 300 and spaces:
|
93 |
return "Text is too long", None
|
94 |
if tts_text is None or tts_voice is None:
|
95 |
return "You need to enter text and select a voice", None
|