feat: add chunk crossfade slider (0ms = hard cut)

Persisted setting (default 50ms) controls how audio chunks are blended
together.  Set to 0 for a clean hard cut with no overlap.
This commit is contained in:
James Pine
2026-03-13 06:48:06 -07:00
parent 837f8525d8
commit 97292ecef7
7 changed files with 43 additions and 2 deletions
+1
View File
@@ -59,6 +59,7 @@ class GenerationRequest(BaseModel):
instruct: Optional[str] = Field(None, max_length=500)
engine: Optional[str] = Field(default="qwen", pattern="^(qwen|luxtts|chatterbox|chatterbox_turbo)$")
max_chunk_chars: int = Field(default=800, ge=100, le=5000, description="Max characters per chunk for long text splitting")
crossfade_ms: int = Field(default=50, ge=0, le=500, description="Crossfade duration in ms between chunks (0 for hard cut)")
class GenerationResponse(BaseModel):