first commit
This commit is contained in:
25
config.py
Normal file
25
config.py
Normal file
@ -0,0 +1,25 @@
|
||||
"""
|
||||
NovaAi – TTS-Engine-Hub
|
||||
config.py
|
||||
Version: v0.0.1
|
||||
|
||||
Description:
|
||||
Centralized configuration management using pydantic-settings.
|
||||
Loads settings from a .env file and environment variables.
|
||||
"""
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
from typing import List, Set
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# Server Configuration
|
||||
HOST: str = "0.0.0.0"
|
||||
PORT: int = 8000
|
||||
|
||||
# Application Configuration
|
||||
ACTIVE_ENGINES: Set[str] = {"piper"}
|
||||
ASSET_DIR: str = "asset"
|
||||
AUDIO_CACHE_DIR: str = "asset/audio"
|
||||
|
||||
model_config = SettingsConfigDict(env_file=".env", env_file_encoding='utf-8')
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user