Split the single ASR gateway into app/main.py (entrypoint) + app/core (shared env helpers) + app/asr (all existing ASR logic, unchanged behavior) + app/tts (placeholder router/config, no engine yet), so a real TTS backend can be dropped in later without reshuffling ASR code. API moved under /asr/* and /tts/* prefixes; UI gained a top-level ASR/TTS tab switcher built on a reusable nested .tab-group mechanism, with JS split into common.js/asr.js/tts.js. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
385 B
Python
13 lines
385 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
from core.config import env_str
|
|
|
|
TTS_BASE_DIR = Path(env_str("TTS_BASE_DIR", "/srv/tts"))
|
|
TTS_MODEL_CACHE = Path(env_str("TTS_MODEL_CACHE_DIR", str(TTS_BASE_DIR / "models-cache")))
|
|
TTS_UPLOAD_DIR = TTS_BASE_DIR / "uploads"
|
|
TTS_RESULT_DIR = TTS_BASE_DIR / "results"
|
|
|
|
DEFAULT_TTS_BACKEND = env_str("DEFAULT_TTS_BACKEND", "")
|