feat: make output label safe for file naming
This commit is contained in:
parent
ac24db96a1
commit
39429907a3
1 changed files with 3 additions and 0 deletions
3
tts.py
3
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:
|
||||
|
|
Loading…
Reference in a new issue