# .env - Initial Configuration Seed for Dia TTS Server
# IMPORTANT: This file is ONLY used on the very first server start
#            IF config.yaml does NOT exist.
#            After config.yaml is created, settings are managed there.
#            Changes here will NOT affect a running server with an existing config.yaml.
#            Use the Web UI or directly edit config.yaml for subsequent changes.

# --- Server Settings ---
HOST='0.0.0.0'
PORT='8003'

# --- Path Settings ---
# These paths will be written into the initial config.yaml
DIA_MODEL_CACHE_PATH='./model_cache'
REFERENCE_AUDIO_PATH='./reference_audio'
OUTPUT_PATH='./outputs'
# Path for predefined voices is now set in config.py defaults
# PREDEFINED_VOICES_PATH='./voices' 

# --- Model Source Settings ---
# Defaulting to BF16 safetensors. Uncomment/modify to seed config.yaml differently.
DIA_MODEL_REPO_ID='ttj/dia-1.6b-safetensors'
DIA_MODEL_CONFIG_FILENAME='config.json'
DIA_MODEL_WEIGHTS_FILENAME='dia-v0_1_bf16.safetensors'

# Example: Seed with full precision safetensors
# DIA_MODEL_REPO_ID=ttj/dia-1.6b-safetensors
# DIA_MODEL_WEIGHTS_FILENAME=dia-v0_1.safetensors

# Example: Seed with original Nari Labs .pth model
# DIA_MODEL_REPO_ID=nari-labs/Dia-1.6B
# DIA_MODEL_WEIGHTS_FILENAME=dia-v0_1.pth

# --- Whisper Transcription Settings ---
# Model name for automatic transcription if reference .txt is missing.
WHISPER_MODEL_NAME='small.en'

# --- Default Generation Parameters ---
# These set the initial values in the 'generation_defaults' section of config.yaml.
# They can be changed later via the UI ('Save Generation Defaults' button) or by editing config.yaml.
GEN_DEFAULT_SPEED_FACTOR='1.0'
GEN_DEFAULT_CFG_SCALE='3.0'
GEN_DEFAULT_TEMPERATURE='1.3'
GEN_DEFAULT_TOP_P='0.95'
GEN_DEFAULT_CFG_FILTER_TOP_K='35'
# -1 for random seed
GEN_DEFAULT_SEED='42' 
# Now managed in config.py defaults
# GEN_DEFAULT_SPLIT_TEXT='True'
# GEN_DEFAULT_CHUNK_SIZE='120'

# --- UI State ---
# UI state (last text, selections, etc.) is NOT seeded from .env.
# It starts with defaults defined in config.py and is saved in config.yaml.
