34 lines
837 B
Batchfile
Executable File
34 lines
837 B
Batchfile
Executable File
@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
|