-
-
Notifications
You must be signed in to change notification settings - Fork 901
Expand file tree
/
Copy path.env.example
More file actions
38 lines (32 loc) · 1.1 KB
/
Copy path.env.example
File metadata and controls
38 lines (32 loc) · 1.1 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
# API Settings
API_TITLE="Kokoro TTS API"
API_DESCRIPTION="API for text-to-speech generation using Kokoro"
API_VERSION="1.0.0"
HOST="0.0.0.0"
PORT=8880
# Authentication Settings
ENABLE_AUTH=False # Set to True to enable API key authentication
API_KEYS=["sk-kokoro-1234567890abcdef", "sk-kokoro-0987654321fedcba"] # List of valid API keys
# Application Settings
OUTPUT_DIR="output"
OUTPUT_DIR_SIZE_LIMIT_MB=500.0
DEFAULT_VOICE="af_heart"
# DEFAULT_VOICE_CODE can be set to a language code like "a" for American English, "j" for Japanese, etc.
# Valid codes: a (American English), b (British English), e (Spanish), f (French), h (Hindi),
# i (Italian), p (Portuguese), j (Japanese), z (Mandarin Chinese)
# Set to null or leave commented out to use the first letter of the voice name
DEFAULT_VOICE_CODE="a"
USE_GPU=True
ALLOW_LOCAL_VOICE_SAVING=False
# Audio Settings
SAMPLE_RATE=24000
# Web Player Settings
ENABLE_WEB_PLAYER=True
WEB_PLAYER_PATH="web"
CORS_ORIGINS=["*"]
CORS_ENABLED=True
# Temp File Settings
TEMP_FILE_DIR="api/temp_files"
MAX_TEMP_DIR_SIZE_MB=2048
MAX_TEMP_DIR_AGE_HOURS=1
MAX_TEMP_DIR_COUNT=3