voice-detection-engine / .env.example
aryan12345ark's picture
Upload 19 files
0001b53 verified
# Voice Detection Engine - Environment Variables
# Copy this file to .env and fill in your values
# =============================================================================
# Authentication
# =============================================================================
# Shared secret for gateway authentication (must match gateway's INTERNAL_SECRET)
INTERNAL_SECRET=your-shared-secret-here
# =============================================================================
# Model Configuration
# =============================================================================
# Device for inference (cpu or cuda)
DEVICE=cpu
# Model names (can be changed to different versions)
WAV2VEC_MODEL_NAME=facebook/wav2vec2-base
WHISPER_MODEL_NAME=openai/whisper-tiny
# =============================================================================
# Audio Processing
# =============================================================================
# Target sample rate for all audio
TARGET_SAMPLE_RATE=16000
# Maximum audio duration in seconds
MAX_AUDIO_SECONDS=60
# Minimum audio duration in seconds
MIN_AUDIO_SECONDS=0.5
# =============================================================================
# Runtime Configuration
# =============================================================================
# Enable debug mode
DEBUG=false
# Logging level: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL=INFO
# Load models on startup (recommended for production)
EAGER_MODEL_LOAD=true