init: scripts diversos (crawlers, conversores, scrapers)
This commit is contained in:
25
tts-generator/teste_quota.sh
Executable file
25
tts-generator/teste_quota.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user