init: scripts diversos (crawlers, conversores, scrapers)
This commit is contained in:
33
tts-generator/run_gemini_tts.bat
Executable file
33
tts-generator/run_gemini_tts.bat
Executable file
@@ -0,0 +1,33 @@
|
||||
@echo off
|
||||
REM Script para Windows - Configurar e executar o Gerador de Voz da Descomplicar
|
||||
|
||||
echo 🎙️ Configurando Gerador de Voz da Descomplicar...
|
||||
|
||||
REM Carregar API Key do .env
|
||||
if exist .env (
|
||||
for /f "tokens=1,2 delims==" %%a in (.env) do set %%a=%%b
|
||||
)
|
||||
if "%GEMINI_API_KEY%"=="" (
|
||||
echo ERRO: GEMINI_API_KEY nao configurada! Criar .env com GEMINI_API_KEY=...
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Verificar se Python está instalado
|
||||
python --version >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo ❌ Python não encontrado. Por favor, instale o Python 3.8+
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Instalar dependências
|
||||
echo 📦 Instalando dependências...
|
||||
pip install google-genai
|
||||
|
||||
REM Executar o script
|
||||
echo 🚀 Iniciando geração de áudio...
|
||||
python gemini_tts.py
|
||||
|
||||
echo ✅ Processo concluído! Verifique os ficheiros de áudio gerados.
|
||||
pause
|
||||
Reference in New Issue
Block a user