Files
audio-engine-hub/config.py
2025-12-04 11:58:36 +01:00

26 lines
646 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
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()