better printing

This commit is contained in:
jmaty 2022-05-05 09:24:37 +02:00
parent 51d7ad161c
commit 458512d236
1 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ def main():
uname = words[0] uname = words[0]
sent_beg = 1 sent_beg = 1
else: else:
uname = args.out_name+str(ix) uname = "{}{:03d}".format(args.out_name, ix)
sent_beg = 0 sent_beg = 0
# Prepare output path # Prepare output path
out_path = PurePath(args.out_dir, "{}.wav".format(uname)) out_path = PurePath(args.out_dir, "{}.wav".format(uname))
@ -296,7 +296,7 @@ def main():
# Prepare text to synthesize # Prepare text to synthesize
text = " ".join(words[sent_beg:sent_end]) text = " ".join(words[sent_beg:sent_end])
print(" > Text #{:02d}: {} --> {}".format(ix, text, out_path)) print(" > Text #{:03d}: {} --> {}".format(ix, text, out_path))
# kick it # kick it
wav = synthesizer.tts(text, args.speaker_idx, args.speaker_wav, args.gst_style) wav = synthesizer.tts(text, args.speaker_idx, args.speaker_wav, args.gst_style)