xJuuzouYTx
commited on
Commit
•
b56d565
1
Parent(s):
895578d
[ADD] 2500 characters limit for elevenlabs
Browse files- tts/conversion.py +2 -0
tts/conversion.py
CHANGED
@@ -73,6 +73,8 @@ def tts_infer(tts_text, model_url, tts_method, tts_model, tts_api_key, language)
|
|
73 |
success = True
|
74 |
|
75 |
if tts_method == 'ElevenLabs':
|
|
|
|
|
76 |
try:
|
77 |
audio = generate(
|
78 |
text=tts_text,
|
|
|
73 |
success = True
|
74 |
|
75 |
if tts_method == 'ElevenLabs':
|
76 |
+
if len(tts_text) > 2500:
|
77 |
+
return "El límite de cuentas no logeadas es de 2500 caracteres.", None
|
78 |
try:
|
79 |
audio = generate(
|
80 |
text=tts_text,
|