Files
scripts/tts-generator/teste_quota.sh

26 lines
615 B
Bash
Executable File

#!/bin/bash
# teste_quota.sh
# Author: Descomplicar® Crescimento Digital
# Link: https://descomplicar.pt
# Copyright: 2025 Descomplicar®
# Teste rápido com texto pequeno
echo "🧪 Testando com texto menor para verificar quota..."
# Carregar API Key do .env
if [ -f .env ]; then
export $(grep -v '^#' .env | xargs)
fi
if [ -z "$GEMINI_API_KEY" ]; then
echo "ERRO: GEMINI_API_KEY nao configurada!"
exit 1
fi
source venv/bin/activate
echo "🎤 Gerando áudio de teste..."
python gemini_tts_teste.py
echo "📁 Ficheiros gerados:"
ls -la *.wav 2>/dev/null || echo "Nenhum ficheiro WAV encontrado"