MemoirAI / config.py
gaur3009's picture
Update config.py
6e03f4b verified
raw
history blame
732 Bytes
import os
# Speech Recognition Configuration
ENERGY_THRESHOLD = 300 # Minimum audio energy to consider for speech
DYNAMIC_ENERGY_THRESHOLD = True
PAUSE_THRESHOLD = 0.8 # Seconds of silence before considering speech ended
PHRASE_TIME_LIMIT = 10 # Maximum seconds per phrase
# AI Configuration
SUMMARY_MIN_LENGTH = 100
SUMMARY_MAX_LENGTH = 300
# Notification Configuration
NOTIFICATION_RECIPIENTS = [
{"type": "email", "address": "[email protected]"}
]
# Email Configuration
SMTP_SERVER = "smtp.gmail.com"
SMTP_PORT = 587
EMAIL_SENDER = "[email protected]"
EMAIL_PASSWORD = "your-app-password" # Use app-specific password
# Create necessary directories
if not os.path.exists("recordings"):
os.makedirs("recordings")