From 69293b3e1440b3b2a2e89a45ae83f4e97cf35c60 Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 4 Sep 2025 13:47:07 +0200 Subject: [PATCH] feat: better reporting on output files directory --- tts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tts.py b/tts.py index cd86b25..b79cae8 100644 --- a/tts.py +++ b/tts.py @@ -145,13 +145,14 @@ def main(): generator = pipeline(text, voice=voice, split_pattern=r'[:.?!;]\n+') output_files = generate_audio(generator, name, voice, args.device) + directory, output_file_name = os.path.split(output_files[0]) if args.skip_play: - print("Audio player disabled.", f"Outputs in: {name}") + print(f"Audio player disabled: {directory}/*") else: try: play_audio(output_files) except: - print("Something went wrong when trying to play the audio files. Try `--skip_play` and play the output files manually.") + print(f"Something went wrong when trying to play the audio. Play the output files manually: {directory}/*") if __name__ == "__main__": main()