# ----------------------------------------------------------------------------- # Speakr Configuration: ASR Endpoint # # Instructions: # 1. Copy this file to a new file named .env # cp env.asr.example .env # 2. Fill in the required URLs, API keys, and settings below. # ----------------------------------------------------------------------------- # --- Text Generation Model (for summaries, titles, etc.) --- TEXT_MODEL_BASE_URL=https://openrouter.ai/api/v1 TEXT_MODEL_API_KEY=your_openrouter_api_key TEXT_MODEL_NAME=openai/gpt-4o-mini # --- Transcription Service (ASR Endpoint) --- # Setting this to true enables all ASR features including speaker diarization # Note: File chunking is NOT supported with ASR endpoints USE_ASR_ENDPOINT=true # ASR Endpoint URL # For containers in same docker-compose: Use container name and internal port # Example: http://whisper-asr:9000 (NOT the host port 6002 or external IP) # For external ASR: Use http://192.168.1.100:9000 or http://asr.example.com:9000 ASR_BASE_URL=http://whisper-asr:9000 # Optional: Override default speaker settings (defaults shown) # These are automatically set when USE_ASR_ENDPOINT=true # ASR_DIARIZE=true # Auto-enabled with ASR (set to false to disable) # ASR_MIN_SPEAKERS=1 # Default minimum speakers # ASR_MAX_SPEAKERS=5 # Default maximum speakers # --- Application Settings --- # Set to "true" to allow user registration, "false" to disable ALLOW_REGISTRATION=false SUMMARY_MAX_TOKENS=8000 CHAT_MAX_TOKENS=5000 # Timezone for displaying dates and times in the UI # Use a valid TZ database name (e.g., "America/New_York", "Europe/London", "UTC") TIMEZONE="UTC" # Set the logging level for the application. # Options: DEBUG, INFO, WARNING, ERROR LOG_LEVEL="INFO" # --- Admin User (created on first run) --- ADMIN_USERNAME=admin ADMIN_EMAIL=admin@example.com ADMIN_PASSWORD=changeme # --- Inquire Mode (AI search across all recordings) --- # Set to "true" to enable semantic search and chat across all recordings # Requires additional dependencies (already included in Docker image) ENABLE_INQUIRE_MODE=false # --- Automated File Processing (Black Hole Directory) --- # Set to "true" to enable automated file processing ENABLE_AUTO_PROCESSING=false # Processing mode: admin_only, user_directories, or single_user AUTO_PROCESS_MODE=admin_only # Directory to watch for new audio files AUTO_PROCESS_WATCH_DIR=/data/auto-process # How often to check for new files (seconds) AUTO_PROCESS_CHECK_INTERVAL=30 # Default username for single_user mode (only used if AUTO_PROCESS_MODE=single_user) # AUTO_PROCESS_DEFAULT_USERNAME=admin # --- Docker Settings (rarely need to be changed) --- SQLALCHEMY_DATABASE_URI=sqlite:////data/instance/transcriptions.db UPLOAD_FOLDER=/data/uploads