-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
61 lines (48 loc) · 1.56 KB
/
.env.example
File metadata and controls
61 lines (48 loc) · 1.56 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
# ============================================
# CosyVoice API Configuration (v2 + v3)
# ============================================
# Server Configuration
HOST=0.0.0.0
PORT=8012
DEBUG=false
# CORS Settings
ALLOWED_ORIGINS=["*"]
# ============================================
# Model Configuration
# ============================================
# CosyVoice2 (v2) - Legacy
MODEL_DIR=models/CosyVoice2-0.5B
# CosyVoice3 (v3) - Latest (Recommended)
MODEL_DIR_V3=models/Fun-CosyVoice3-0.5B
# HuggingFace repo for auto-download
COSYVOICE3_HF_REPO=FunAudioLLM/Fun-CosyVoice3-0.5B-2512
# Auto-download models from HuggingFace if not found
AUTO_DOWNLOAD_MODELS=true
# ============================================
# Voice Cache Settings
# ============================================
VOICE_CACHE_DIR=voice_cache
VOICE_CACHE_DB=voice_cache/voices.json
# ============================================
# Audio Settings
# ============================================
MAX_AUDIO_DURATION=30
SAMPLE_RATE=22050
# ============================================
# Processing Settings
# ============================================
MAX_TEXT_LENGTH=1000
DEFAULT_SPEED=1.0
# ============================================
# File Upload Settings
# ============================================
MAX_FILE_SIZE=52428800 # 50MB
# ============================================
# Output Settings
# ============================================
OUTPUT_DIR=outputs
# ============================================
# Cleanup Settings
# ============================================
CLEANUP_INTERVAL=3600
TEMP_FILE_LIFETIME=7200