Merge pull request #3617 from pipecat-ai/fix/cjk-sentence-splitting

Fix sentence splitting for CJK and other non-Latin languages
This commit is contained in:
Mark Backman
2026-02-02 18:16:51 -05:00
committed by GitHub
4 changed files with 123 additions and 1 deletions

5
changelog/3617.fixed.md Normal file
View File

@@ -0,0 +1,5 @@
- Fixed sentence splitting for Japanese, Chinese, Korean, and other non-Latin
languages in TTS pipeline. NLTK's sentence tokenizer does not support CJK
languages, causing text to accumulate until flush instead of being split at
sentence boundaries. Added fallback detection for unambiguous non-Latin
sentence-ending punctuation (e.g., `。`, ``, ``).