forked from bogdal1993/voice_perception
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
81 lines (66 loc) · 1.72 KB
/
Copy path.env.example
File metadata and controls
81 lines (66 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Database Configuration
DSN=postgresql://username:password@localhost:5432/database_name
DB_SCHEMA=vp
# Transcript Server Configuration
TRANSCRIPT_NUM_WORKERS=4
TRANSCRIPT_NUM_THREADS=4
TASK_BATCH_SIZE=30
QUEUE_MAX_SIZE=30
MAX_RETRIES=3
RETRY_DELAY=5
HEALTH_CHECK_INTERVAL=300
TRANSCRIPT_API_KEY=your_api_key_here
# GPU and Performance Configuration
ENABLE_GPU=true
BATCH_SIZE=4
CACHE_ENABLED=true
CACHE_DIR=./cache
CACHE_TTL=3600
# Voice Activity Detection (VAD) Configuration for Children's Voices
VAD_THRESHOLD=0.4
VAD_MIN_SPEECH_DURATION_MS=200
VAD_MIN_SILENCE_DURATION_MS=100
# ASR Model Configuration
ASR_MODEL_NAME=v2_ctc
# Text Processor Configuration
TEXT_PROCESSOR_WORKERS=4
TEXT_PROCESSOR_BATCH_SIZE=10
TEXT_PROCESSOR_MAX_RETRIES=3
TEXT_PROCESSOR_RETRY_DELAY=5
# Tag Server Configuration
TAG_SERVER_WORKERS=4
TAG_SERVER_BATCH_SIZE=8
TAG_SERVER_MAX_RETRIES=3
TAG_SERVER_RETRY_DELAY=5
TAG_THRESHOLD=0.7
# File Server Configuration
FILE_SERVER_URL=http://localhost:8000
# Logging Configuration
LOG_LEVEL=INFO
LOG_FORMAT=%(asctime)s - %(levelname)s - %(message)s
# Monitoring and Health Check Configuration
ENABLE_METRICS=true
METRICS_PORT=9090
HEALTH_CHECK_PORT=8080
# Connection Pool Configuration
DB_POOL_MIN_CONN=2
DB_POOL_MAX_CONN=16
DB_CONNECTION_TIMEOUT=30
# Audio Processing Configuration
AUDIO_SAMPLE_RATE=16000
AUDIO_BIT_DEPTH=16
AUDIO_CHANNELS=1
# Temporary Directory Configuration
TEMP_DIR=./tempmedia
# Model Configuration
MODEL_DIR=./models
MODEL_CACHE_ENABLED=true
# Performance Optimization
ENABLE_PARALLEL_PROCESSING=true
ENABLE_BATCH_PROCESSING=true
ENABLE_RESULT_CACHING=true
ENABLE_ASYNC_PROCESSING=true
# Children's Voice Specific Settings
CHILD_VOICE_MIN_FREQ=300
CHILD_VOICE_MAX_FREQ=3400
CHILD_VOICE_SENSITIVITY=0.8