feat: better verbose messages
This commit is contained in:
parent
9c90d07a06
commit
8cf2827b24
1 changed files with 5 additions and 4 deletions
9
tts.py
9
tts.py
|
@ -163,16 +163,17 @@ def main():
|
||||||
)
|
)
|
||||||
|
|
||||||
if (args.verbose):
|
if (args.verbose):
|
||||||
print(f"Using {args.device} device.")
|
print(f"[TTS] Using device: \"{args.device}\", voice: \"{voice}\", output label: \"{name}\"")
|
||||||
|
|
||||||
start_time = time()
|
start_time = time()
|
||||||
output_files = generate_audio(generator, name, voice)
|
output_files = generate_audio(generator, name, voice)
|
||||||
generation_time = time() - start_time
|
generation_time = time() - start_time
|
||||||
directory, output_file_name = os.path.split(output_files[0])
|
|
||||||
|
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
print(f"{len(output_files)} chunks generated in {generation_time:.2f} seconds")
|
print(f"[TTS] {len(output_files)} chunks generated in {generation_time:.2f} seconds")
|
||||||
print("Now playing generated audio...")
|
print("[TTS] Now playing generated audio...")
|
||||||
|
|
||||||
|
directory,f = os.path.split(output_files[0])
|
||||||
|
|
||||||
if args.skip_play:
|
if args.skip_play:
|
||||||
print(f"Audio player disabled: {directory}/*")
|
print(f"Audio player disabled: {directory}/*")
|
||||||
|
|
Loading…
Reference in a new issue