xJuuzouYTx
commited on
Commit
•
97fc03f
1
Parent(s):
8a54adc
[ADD] default voices
Browse files- tts/conversion.py +2 -1
tts/conversion.py
CHANGED
@@ -9,6 +9,7 @@ from inference import Inference
|
|
9 |
import asyncio
|
10 |
from elevenlabs import voices, generate, save
|
11 |
from elevenlabs.api.error import UnauthenticatedRateLimitError
|
|
|
12 |
from neon_tts_plugin_coqui import CoquiTTS
|
13 |
import tempfile
|
14 |
|
@@ -73,7 +74,7 @@ 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 |
-
if len(tts_text) >
|
77 |
return "El límite de cuentas no logeadas es de 2500 caracteres.", None
|
78 |
try:
|
79 |
audio = generate(
|
|
|
9 |
import asyncio
|
10 |
from elevenlabs import voices, generate, save
|
11 |
from elevenlabs.api.error import UnauthenticatedRateLimitError
|
12 |
+
# Not working in windows
|
13 |
from neon_tts_plugin_coqui import CoquiTTS
|
14 |
import tempfile
|
15 |
|
|
|
74 |
success = True
|
75 |
|
76 |
if tts_method == 'ElevenLabs':
|
77 |
+
if len(tts_text) > 2499:
|
78 |
return "El límite de cuentas no logeadas es de 2500 caracteres.", None
|
79 |
try:
|
80 |
audio = generate(
|