From a456d20658a80cf2d44a207bd7a0fbb6344cc80b Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 4 Sep 2025 12:03:29 +0200 Subject: [PATCH] feat: split on newlines if has a `:` at the end --- tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tts.py b/tts.py index c90bf00..772cdde 100644 --- a/tts.py +++ b/tts.py @@ -122,7 +122,7 @@ def main(): name = "chat" text = args.input_text - generator = pipeline(text, voice=voice, split_pattern=None) + generator = pipeline(text, voice=voice, split_pattern=r':\n+') output_files = generate_audio(generator, name, voice, args.device) if args.skip_play: print("Audio player disabled.", f"{name}-{voice}-#.wav")