File size: 667 Bytes
94dcc3d
cf86922
 
 
 
 
94dcc3d
cf86922
 
 
94dcc3d
cf86922
 
 
 
 
 
 
 
94dcc3d
6e03f4b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# config.py (Configuration)
import os

# Speech Recognition Configuration
ENERGY_THRESHOLD = 300  # Minimum audio energy to consider for speech
PAUSE_THRESHOLD = 0.8  # Seconds of silence before considering speech ended
PHRASE_TIME_LIMIT = 30  # Maximum seconds per phrase

# Notification Configuration
NOTIFICATION_RECIPIENTS = [
    {"type": "email", "address": "your-email@example.com"}
]

# Email Configuration
SMTP_SERVER = "smtp.gmail.com"
SMTP_PORT = 587
EMAIL_SENDER = "your-email@gmail.com"
EMAIL_PASSWORD = "your-app-password"  # Use app-specific password

# Create directory for recordings
if not os.path.exists("recordings"):
    os.makedirs("recordings")