Update voice_processing.py
Browse files- voice_processing.py +2 -1
voice_processing.py
CHANGED
@@ -163,7 +163,8 @@ def tts(model_name, tts_text, tts_voice, index_rate, use_uploaded_voice, uploade
|
|
163 |
print(f"Audio duration: {duration}s")
|
164 |
if limitation and duration >= 20:
|
165 |
return (
|
166 |
-
f"Audio should be
|
|
|
167 |
None,
|
168 |
)
|
169 |
|
|
|
163 |
print(f"Audio duration: {duration}s")
|
164 |
if limitation and duration >= 20:
|
165 |
return (
|
166 |
+
f"Audio should be less than 20 seconds in this huggingface space, but got {duration}s.",
|
167 |
+
None,
|
168 |
None,
|
169 |
)
|
170 |
|