# ----------------------------------------------------------------------------- # Speakr Configuration: Standard Whisper API # # Instructions: # 1. Copy this file to a new file named .env # cp env.whisper.example .env # 2. Fill in the required 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 (OpenAI Whisper API) --- TRANSCRIPTION_BASE_URL=https://api.openai.com/v1 TRANSCRIPTION_API_KEY=your_openai_api_key WHISPER_MODEL=whisper-1 # --- 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" # --- Large File Chunking --- # Automatically splits large files to work with API limits ENABLE_CHUNKING=true # Choose chunking method based on your provider's limits: # For size-based limits (e.g., OpenAI's 25MB limit): CHUNK_LIMIT=20MB # For duration-based limits (uncomment and use instead): # CHUNK_LIMIT=1200s # 20 minutes # CHUNK_LIMIT=20m # Alternative format # Overlap between chunks (seconds) CHUNK_OVERLAP_SECONDS=3 # --- 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