feat: do not split sentences with new lines
This commit is contained in:
parent
205f281b92
commit
05a2bba3aa
1 changed files with 1 additions and 1 deletions
2
tts.py
2
tts.py
|
@ -122,7 +122,7 @@ def main():
|
|||
name = "chat"
|
||||
text = args.input_text
|
||||
|
||||
generator = pipeline(text, voice=voice)
|
||||
generator = pipeline(text, voice=voice, split_pattern=None)
|
||||
output_files = generate_audio(generator, name, voice, args.device)
|
||||
if args.skip_play:
|
||||
print("Audio player disabled.", f"{name}-{voice}-#.wav")
|
||||
|
|
Loading…
Reference in a new issue