feat: Implement segment update and regeneration features in Audiobook API and frontend

This commit is contained in:
2026-03-12 15:48:35 +08:00
parent a1ee476e0f
commit bb6ad9b0a3
13 changed files with 485 additions and 31 deletions

View File

@@ -89,6 +89,12 @@ class AudiobookSegmentResponse(BaseModel):
model_config = ConfigDict(from_attributes=True)
class AudiobookSegmentUpdate(BaseModel):
text: str
emo_text: Optional[str] = None
emo_alpha: Optional[float] = None
class LLMConfigUpdate(BaseModel):
base_url: str
api_key: str