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

@@ -53,6 +53,7 @@ def _project_to_detail(project, db: Session) -> AudiobookProjectDetail:
description=c.description,
instruct=c.instruct,
voice_design_id=c.voice_design_id,
use_indextts2=c.use_indextts2 or False,
)
for c in (project.characters or [])
]
@@ -415,6 +416,7 @@ async def update_character(
description=data.description,
instruct=data.instruct,
voice_design_id=data.voice_design_id,
use_indextts2=data.use_indextts2,
)
if data.instruct is not None and char.voice_design_id:
@@ -431,6 +433,7 @@ async def update_character(
description=char.description,
instruct=char.instruct,
voice_design_id=char.voice_design_id,
use_indextts2=char.use_indextts2 or False,
)