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: