init: scripts diversos (crawlers, conversores, scrapers)
This commit is contained in:
34
tts-generator/teste_todas_vozes.sh
Executable file
34
tts-generator/teste_todas_vozes.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
# teste_todas_vozes.sh
|
||||
# Author: Descomplicar® Crescimento Digital
|
||||
# Link: https://descomplicar.pt
|
||||
# Copyright: 2025 Descomplicar®
|
||||
|
||||
|
||||
# Carregar API key do .env
|
||||
if [ -f .env ]; then
|
||||
export $(grep -v '^#' .env | xargs)
|
||||
fi
|
||||
if [ -z "$OPENAI_API_KEY" ]; then
|
||||
echo "ERRO: OPENAI_API_KEY nao configurada! Criar .env com OPENAI_API_KEY=..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "🔬 Teste Comparativo de Vozes OpenAI para PT-PT"
|
||||
echo "=" * 50
|
||||
|
||||
# Ativar venv se não estiver ativo
|
||||
if [[ "$VIRTUAL_ENV" == "" ]]; then
|
||||
source venv/bin/activate
|
||||
fi
|
||||
|
||||
# Executar teste
|
||||
python teste_comparativo_vozes.py
|
||||
|
||||
echo ""
|
||||
echo "🎧 Ficheiros gerados para comparação:"
|
||||
ls -la *.mp3 | grep teste_voz 2>/dev/null || echo "Nenhum ficheiro de teste encontrado"
|
||||
ls -la *.mp3 | grep ptpt_trick 2>/dev/null || echo "Nenhum ficheiro de truque encontrado"
|
||||
|
||||
echo ""
|
||||
echo "💡 Ouve cada ficheiro para identificar qual soa mais PT-PT"
|
||||
Reference in New Issue
Block a user