feat: Integrate IndexTTS2 model and update related schemas and frontend components
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user