From 2871d9fb8378a2ec4f6158d1f5ceeb873c9c552c Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 8 Jun 2026 14:32:07 +0200 Subject: [PATCH] feat: display demo file used when no input --- tts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tts.py b/tts.py index 50f4aa0..671eb3c 100755 --- a/tts.py +++ b/tts.py @@ -177,7 +177,7 @@ def main(): if not default_exists: script_dir = os.path.dirname(os.path.realpath(__file__)) file_path = os.path.join(script_dir, 'tongue-twister.txt') - print(f"Using demo file: {file_path}") + print(f"Using demo file: {file_path}") if os.path.isfile(file_path): directory, file_name = os.path.split(file_path) @@ -227,6 +227,7 @@ def main(): start_time = time() output_files = generate_audio(generator, name, voice) generation_time = time() - start_time + if len(output_files) > 0: directory,f = os.path.split(output_files[0]) else: