[Feature Request] Improve long-form synthesis: Add user-configurable Smart Chunking to prevent robotic artifacts
When generating long audio (e.g., 5,000 characters), the synthesis quality degrades significantly over time, resulting in a "robotic" or distorted voice towards the end of the generation. This is a common stability issue with many TTS models (like Qwen3-TTS) when processing large context windows.
The Problem: Currently, Voicebox seems to process large chunks of text at once, or the internal auto-chunking is not granular enough. This leads to:
Robotic Tones: The voice loses its natural prosody after a few paragraphs.
Synthesis Collapse: The model starts repeating words or making weird noises at high character counts.
Proposed Solution: Smart Chunking Control To solve this, I suggest adding a Chunking Configuration section in the settings or generation panel:
Max Chunk Length: Allow users to set a character limit (e.g., 200–400 chars). The app should automatically split the 5,000-character script into these smaller, stable chunks.
Split on Punctuation: Ensure the engine only splits at natural pauses (Periods, Commas, Newlines) to maintain flow.
Crossfade/Stitching: Improve the stitching of these chunks with a small crossfade (e.g., 50ms) to ensure there are no audible "clicks" or gaps between generated segments.
Why this is needed: For users creating podcasts, audiobooks, or long-form narrations, maintaining a natural human voice is critical. Granular control over how text is fed into the model would allow users to balance speed and quality, effectively preventing the "robotic voice" issue.
Environment: Voicebox Version: v0.3.1
Models tested: Qwen3-TTS (1.7B)
I hit a related pacing issue with Qwen3-TTS where the voice identity/audio quality is good, but sentence and paragraph pauses are too short, especially for spoken assistant/narration-style output.
Voicebox already exposes the useful pieces for stability (max_chunk_chars, crossfade_ms) and the backend has generate_chunked(...), but crossfade_ms=0 only gives a hard cut. There does not seem to be an equivalent control for adding intentional silence between generated chunks.
A small extension that would help a lot:
sentence_pause_ms/chunk_gap_ms, e.g. 250–400 ms- optionally
paragraph_pause_ms, e.g. 600–900 ms when the split boundary came from a blank line / paragraph break - keep
crossfade_msfor click smoothing, but allow an explicit silence gap after each chunk before concatenation
Why this matters:
- prompts and punctuation help a bit, but Qwen3-TTS often under-pauses anyway
- lower
max_chunk_charsimproves stability but can make pacing feel glued together unless the stitcher inserts silence - this is especially noticeable for clean spoken-word / narration / assistant voices, where paragraph timing matters as much as timbre
Possible behavior:
max_chunk_chars = 140
crossfade_ms = 0
sentence_pause_ms = 300
paragraph_pause_ms = 750
Implementation-wise this seems like it could live near concatenate_audio_chunks(...) / generate_chunked(...): concatenate chunks with either crossfade, hard cut, or inserted zero-valued samples depending on settings. Longer-term, explicit break tags like <break time="750ms" /> or [pause:750ms] would be great too, but even a global gap control would solve a lot of the current pacing problem.