127 lines
4.9 KiB
Plaintext
127 lines
4.9 KiB
Plaintext
# =============================================================================
|
|
# DictIA 8 — Configuration (.env)
|
|
# GPU : RTX 5060 (8 Go VRAM)
|
|
# =============================================================================
|
|
#
|
|
# Architecture :
|
|
# - Transcription : WhisperX Large-v3 (local, ~5,5 Go VRAM)
|
|
# - LLM (résumés) : API cloud via OpenRouter (VRAM insuffisante pour LLM local)
|
|
#
|
|
# Démarrage rapide :
|
|
# 1. cp config/env.dictia8.example .env
|
|
# 2. Remplir TRANSCRIPTION_API_KEY et TEXT_MODEL_API_KEY
|
|
# 3. docker compose -f config/docker-compose.dictia8.yml up -d
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
# MODÈLE DE TEXTE — Résumés, titres, chat (REQUIS)
|
|
# =============================================================================
|
|
# DictIA 8 utilise un LLM cloud via OpenRouter (VRAM insuffisante pour LLM local).
|
|
# Inscrivez-vous sur https://openrouter.ai pour obtenir une clé API.
|
|
|
|
TEXT_MODEL_BASE_URL=https://openrouter.ai/api/v1
|
|
TEXT_MODEL_API_KEY=votre_cle_openrouter
|
|
TEXT_MODEL_NAME=openai/gpt-4o-mini
|
|
|
|
# =============================================================================
|
|
# TRANSCRIPTION — WhisperX ASR local (REQUIS)
|
|
# =============================================================================
|
|
# WhisperX tourne en local dans un conteneur Docker séparé.
|
|
# Le service ASR est défini dans docker-compose.dictia8.yml.
|
|
|
|
ASR_BASE_URL=http://whisperx-asr:9000
|
|
|
|
# Diarisation (identification automatique des locuteurs) — recommandé
|
|
ASR_DIARIZE=true
|
|
ASR_RETURN_SPEAKER_EMBEDDINGS=true
|
|
|
|
# Nombre de locuteurs attendus (optionnel — aide la précision)
|
|
# ASR_MIN_SPEAKERS=1
|
|
# ASR_MAX_SPEAKERS=6
|
|
|
|
# =============================================================================
|
|
# PARAMÈTRES ADMINISTRATEUR
|
|
# =============================================================================
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_EMAIL=admin@votreentreprise.com
|
|
ADMIN_PASSWORD=changeme
|
|
|
|
# =============================================================================
|
|
# ACCÈS ET INSCRIPTION
|
|
# =============================================================================
|
|
# Désactiver l'inscription publique (accès sur invitation uniquement)
|
|
ALLOW_REGISTRATION=false
|
|
|
|
# Restreindre l'inscription aux domaines autorisés
|
|
# Exemple : REGISTRATION_ALLOWED_DOMAINS=votreentreprise.com
|
|
REGISTRATION_ALLOWED_DOMAINS=
|
|
|
|
# =============================================================================
|
|
# FUSEAU HORAIRE
|
|
# =============================================================================
|
|
# Exemples : America/Toronto, America/Montreal, America/New_York, UTC
|
|
TIMEZONE="America/Toronto"
|
|
|
|
# =============================================================================
|
|
# LIMITES DE TOKENS
|
|
# =============================================================================
|
|
SUMMARY_MAX_TOKENS=8000
|
|
CHAT_MAX_TOKENS=5000
|
|
|
|
# =============================================================================
|
|
# COMPRESSION AUDIO
|
|
# =============================================================================
|
|
AUDIO_COMPRESS_UPLOADS=true
|
|
AUDIO_CODEC=mp3
|
|
AUDIO_BITRATE=128k
|
|
|
|
# =============================================================================
|
|
# FONCTIONNALITÉS OPTIONNELLES
|
|
# =============================================================================
|
|
|
|
# Inquire Mode — recherche IA sur tous les enregistrements
|
|
# Désactivé sur DictIA 8 (VRAM insuffisante pour embeddings locaux)
|
|
ENABLE_INQUIRE_MODE=false
|
|
|
|
# Traitement automatique de fichiers (dossier surveillé)
|
|
ENABLE_AUTO_PROCESSING=false
|
|
# AUTO_PROCESS_MODE=admin_only
|
|
# AUTO_PROCESS_WATCH_DIR=/data/auto-process
|
|
|
|
# Export automatique
|
|
ENABLE_AUTO_EXPORT=false
|
|
# AUTO_EXPORT_DIR=/data/exports
|
|
# AUTO_EXPORT_TRANSCRIPTION=true
|
|
# AUTO_EXPORT_SUMMARY=true
|
|
|
|
# Suppression automatique / rétention
|
|
ENABLE_AUTO_DELETION=false
|
|
# GLOBAL_RETENTION_DAYS=90
|
|
# DELETION_MODE=audio_only
|
|
|
|
# =============================================================================
|
|
# PARTAGE
|
|
# =============================================================================
|
|
ENABLE_INTERNAL_SHARING=false
|
|
ENABLE_PUBLIC_SHARING=true
|
|
USERS_CAN_DELETE=true
|
|
|
|
# =============================================================================
|
|
# FILES D'ATTENTE DE TRAITEMENT
|
|
# =============================================================================
|
|
JOB_QUEUE_WORKERS=2
|
|
SUMMARY_QUEUE_WORKERS=2
|
|
JOB_MAX_RETRIES=3
|
|
|
|
# =============================================================================
|
|
# BASE DE DONNÉES ET STOCKAGE
|
|
# =============================================================================
|
|
SQLALCHEMY_DATABASE_URI=sqlite:////data/instance/transcriptions.db
|
|
UPLOAD_FOLDER=/data/uploads
|
|
|
|
# =============================================================================
|
|
# JOURNALISATION
|
|
# =============================================================================
|
|
# ERROR = production (minimal), INFO = débogage, DEBUG = développement
|
|
LOG_LEVEL=ERROR
|