From e71d871740978b492e6c62f8c474f94aadd127f0 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Tue, 24 Mar 2026 11:52:34 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Auto-deploy:=20BotVPS=20atualiza?= =?UTF-8?q?do=20em=2024/03/2026=2011:52:34?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- audio_handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/audio_handler.py b/audio_handler.py index 4cc30fe..409bbd6 100644 --- a/audio_handler.py +++ b/audio_handler.py @@ -4,7 +4,6 @@ from pydub import AudioSegment from gtts import gTTS import uuid import re -from elevenlabs import generate, save, Voice, VoiceSettings from elevenlabs.client import ElevenLabs def transcribe_audio(file_path: str) -> str: @@ -48,7 +47,7 @@ def text_to_speech(text: str) -> str: voice=voice_id, model="eleven_multilingual_v2" ) - # Salvando o resultado para arquivo + # Salvando o resultado para arquivo (audio é um gerador de bytes na v1.0) with open(filepath, "wb") as f: for chunk in audio: if chunk: