mirror of https://github.com/coqui-ai/TTS.git
better printing
This commit is contained in:
parent
51d7ad161c
commit
458512d236
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue