feat: Integrate IndexTTS2 model and update related schemas and frontend components

This commit is contained in:
2026-03-12 13:30:53 +08:00
parent e5b5a16364
commit 8aec4f6f44
151 changed files with 40077 additions and 85 deletions

View File

@@ -96,11 +96,12 @@ async def lifespan(app: FastAPI):
raise
try:
model_manager = await ModelManager.get_instance()
await model_manager.load_model("custom-voice")
logger.info("Preloaded custom-voice model")
from core.model_manager import IndexTTS2ModelManager
indextts2_manager = await IndexTTS2ModelManager.get_instance()
await indextts2_manager.get_model()
logger.info("Preloaded IndexTTS2 model")
except Exception as e:
logger.warning(f"Model preload failed: {e}")
logger.warning(f"IndexTTS2 model preload failed: {e}")
scheduler = AsyncIOScheduler()
scheduler.add_job(