-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
73 lines (61 loc) · 1.79 KB
/
.env.example
File metadata and controls
73 lines (61 loc) · 1.79 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
#########################################
# Moshi TTS API Configuration
#########################################
# Copy this file to .env and adjust values as needed
# Do NOT commit .env file to git (contains sensitive data)
#########################################
# Server Configuration
#########################################
HOST=0.0.0.0
PORT=8000
LOG_LEVEL=info
WORKERS=1
#########################################
# API Configuration
#########################################
API_VERSION=1.0.0
API_TITLE=Moshi TTS API
MAX_TEXT_LENGTH=5000
#########################################
# Model Configuration
#########################################
# HuggingFace model repositories
DEFAULT_TTS_REPO=kyutai/tts-1.6b-en_fr
DEFAULT_VOICE_REPO=kyutai/tts-voices
# Audio settings
SAMPLE_RATE=24000
# Model device (optional - auto-detected if not set)
# MODEL_DEVICE=cuda
# MODEL_DEVICE=cpu
# Model parameters
MODEL_DTYPE=auto
MODEL_N_Q=32
MODEL_TEMP=0.6
MODEL_CFG_COEF=2.0
#########################################
# Performance Configuration
#########################################
MAX_WORKERS=2
HF_HOME=/app/models
TRANSFORMERS_CACHE=/app/models
#########################################
# CORS Configuration
# WARNING: Change CORS_ORIGINS in production!
#########################################
# For development (allow all)
CORS_ORIGINS=*
# For production (restrict to specific domains)
# CORS_ORIGINS=https://yourdomain.com,https://app.yourdomain.com
CORS_CREDENTIALS=true
CORS_METHODS=*
CORS_HEADERS=*
#########################################
# Environment Settings
#########################################
ENVIRONMENT=production
DEBUG=false
#########################################
# GPU Configuration (Docker)
#########################################
# Which GPU to use (0-indexed)
# CUDA_VISIBLE_DEVICES=0