feat: split list items prefixed with * or -
This commit is contained in:
parent
69293b3e14
commit
8f6c46f638
1 changed files with 1 additions and 1 deletions
2
tts.py
2
tts.py
|
@ -143,7 +143,7 @@ def main():
|
|||
name = name.replace("\\", "_")
|
||||
name = name.replace("/", "_")
|
||||
|
||||
generator = pipeline(text, voice=voice, split_pattern=r'[:.?!;]\n+')
|
||||
generator = pipeline(text, voice=voice, split_pattern=r'[:.?!;]\n+|\n[*-]')
|
||||
output_files = generate_audio(generator, name, voice, args.device)
|
||||
directory, output_file_name = os.path.split(output_files[0])
|
||||
if args.skip_play:
|
||||
|
|
Loading…
Reference in a new issue