Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -79,10 +79,10 @@ def controlador_generate_audio(audio_input, voice_model_input, speed_input, chec
|
|
79 |
print("Erro ao gerar áudio.")
|
80 |
return audio_file # Retornar o caminho do arquivo de áudio
|
81 |
|
82 |
-
from elevenlabs import
|
83 |
-
import
|
84 |
|
85 |
-
def
|
86 |
try:
|
87 |
client = ElevenLabs()
|
88 |
audio = client.generate(
|
|
|
79 |
print("Erro ao gerar áudio.")
|
80 |
return audio_file # Retornar o caminho do arquivo de áudio
|
81 |
|
82 |
+
from elevenlabs.client import ElevenLabs
|
83 |
+
from transformers.errors import UnauthenticatedRateLimitError
|
84 |
|
85 |
+
def generate_voice(text, voice_name):
|
86 |
try:
|
87 |
client = ElevenLabs()
|
88 |
audio = client.generate(
|