From 8cf2827b24884462d216e532cbbcb759f47ac52a Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 4 Sep 2025 21:06:27 +0200 Subject: [PATCH] feat: better verbose messages --- tts.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tts.py b/tts.py index 9cc74a3..e1faaeb 100644 --- a/tts.py +++ b/tts.py @@ -163,16 +163,17 @@ def main(): ) if (args.verbose): - print(f"Using {args.device} device.") + print(f"[TTS] Using device: \"{args.device}\", voice: \"{voice}\", output label: \"{name}\"") start_time = time() output_files = generate_audio(generator, name, voice) generation_time = time() - start_time - directory, output_file_name = os.path.split(output_files[0]) if args.verbose: - print(f"{len(output_files)} chunks generated in {generation_time:.2f} seconds") - print("Now playing generated audio...") + print(f"[TTS] {len(output_files)} chunks generated in {generation_time:.2f} seconds") + print("[TTS] Now playing generated audio...") + + directory,f = os.path.split(output_files[0]) if args.skip_play: print(f"Audio player disabled: {directory}/*")