-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.env.example
124 lines (113 loc) · 3.16 KB
/
.env.example
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# SIPREC Server Environment Configuration
# This file contains all configuration parameters for the SIPREC server
# Network Configuration
# --------------------
# External IP for SDP (auto for auto-detection)
EXTERNAL_IP=auto
# Internal IP for binding (auto for auto-detection)
INTERNAL_IP=auto
# SIP listening ports (comma-separated)
PORTS=5060,5061
# RTP port range
RTP_PORT_MIN=10000
RTP_PORT_MAX=20000
# NAT traversal
BEHIND_NAT=false
# STUN server for NAT traversal (if behind NAT)
STUN_SERVER=stun.l.google.com:19302
# TLS/Security Configuration
# -------------------------
# Enable TLS for secure SIP signaling
ENABLE_TLS=true
# TLS listening port
TLS_PORT=5062
# TLS certificate path (relative to project root or absolute)
TLS_CERT_PATH=./certs/cert.pem
# TLS key path (relative to project root or absolute)
TLS_KEY_PATH=./certs/key.pem
# Enable SRTP for secure media
ENABLE_SRTP=true
# HTTP Server Configuration
# ------------------------
# HTTP port for API and health checks
HTTP_PORT=8080
# Enable HTTP server
HTTP_ENABLED=true
# Enable metrics endpoint
HTTP_ENABLE_METRICS=true
# Enable API endpoints
HTTP_ENABLE_API=true
# HTTP read timeout
HTTP_READ_TIMEOUT=10s
# HTTP write timeout
HTTP_WRITE_TIMEOUT=30s
# Recording Configuration
# ----------------------
# Directory to store recordings
RECORDING_DIR=./recordings
# Maximum recording duration in hours
RECORDING_MAX_DURATION_HOURS=4
# Days to keep recordings before cleanup
RECORDING_CLEANUP_DAYS=30
# Speech-to-Text Configuration
# ---------------------------
# Supported STT vendors (comma-separated)
SUPPORTED_VENDORS=mock,google,deepgram,openai
# Default STT vendor
DEFAULT_SPEECH_VENDOR=mock
# Supported audio codecs (comma-separated)
SUPPORTED_CODECS=PCMU,PCMA,G722
# Resource Configuration
# ---------------------
# Maximum concurrent calls
MAX_CONCURRENT_CALLS=100
# Logging Configuration
# --------------------
# Log level (debug, info, warn, error, fatal)
LOG_LEVEL=info
# Log format (json, text)
LOG_FORMAT=json
# Log output file (empty = stdout)
LOG_OUTPUT_FILE=
# Messaging Configuration
# ---------------------
# AMQP URL for message queue
AMQP_URL=
# AMQP queue name
AMQP_QUEUE_NAME=
# STT Provider Configuration
# ------------------------
# Deepgram API Key (required if using Deepgram)
# DEEPGRAM_API_KEY=
# OpenAI API Key (required if using OpenAI)
# OPENAI_API_KEY=
# Google credentials file path (required if using Google)
# GOOGLE_APPLICATION_CREDENTIALS=
# Session Redundancy Configuration
# -------------------------------
# Enable session redundancy
ENABLE_REDUNDANCY=true
# Session timeout for inactivity
SESSION_TIMEOUT=30s
# Session check interval
SESSION_CHECK_INTERVAL=10s
# Storage type for redundancy
REDUNDANCY_STORAGE_TYPE=memory
# Audio Processing Configuration
# -----------------------------
# Enable audio processing features
ENABLE_AUDIO_PROCESSING=true
# Enable Voice Activity Detection
ENABLE_VAD=true
# VAD threshold for voice detection (0.0-1.0)
VAD_THRESHOLD=0.02
# VAD hold time in milliseconds
VAD_HOLD_TIME_MS=400
# Enable noise reduction
ENABLE_NOISE_REDUCTION=true
# Noise reduction level (0.0-1.0)
NOISE_REDUCTION_LEVEL=0.01
# Number of audio channels
CHANNEL_COUNT=1
# Mix channels to mono
MIX_CHANNELS=true