diff --git a/tts.py b/tts.py index 40ee381..8848353 100644 --- a/tts.py +++ b/tts.py @@ -138,6 +138,9 @@ def main(): if args.title: name = args.title + # make safe for filenames + name = name.replace(" ", "_") + generator = pipeline(text, voice=voice, split_pattern=r'[:.?!;]\n+') output_files = generate_audio(generator, name, voice, args.device) if args.skip_play: