Merge pull request #4323 from dakshdua/daksh/allow-noninitial-whitespace-chunks

fix: when aggregating by tokens, allow inter-token whitespace once non-whitespace has been sent
This commit is contained in:
Filipi da Silva Fuchter
2026-04-22 10:27:08 -03:00
committed by GitHub
2 changed files with 32 additions and 10 deletions

1
changelog/4323.fixed.md Normal file
View File

@@ -0,0 +1 @@
- Fixed whitespace handling in TTS token streaming mode. Inter-token whitespace (e.g., spaces between words) is now preserved for correct prosody, while leading whitespace before the first non-whitespace token is still stripped to avoid issues with TTS models that are sensitive to leading spaces.