feat: handle no generated files & show how to report
This commit is contained in:
parent
5dc110a6ac
commit
12b6709bdd
1 changed files with 4 additions and 1 deletions
5
tts.py
5
tts.py
|
|
@ -202,7 +202,10 @@ def main():
|
|||
start_time = time()
|
||||
output_files = generate_audio(generator, name, voice)
|
||||
generation_time = time() - start_time
|
||||
directory,f = os.path.split(output_files[0])
|
||||
if len(output_files) > 0:
|
||||
directory,f = os.path.split(output_files[0])
|
||||
else:
|
||||
print("\nNo generated files. Please report to hi@ayo.run")
|
||||
|
||||
if args.verbose:
|
||||
print(f"[TTS] {len(output_files)} chunks generated in {generation_time:.2f} seconds")
|
||||
|
|
|
|||
Loading…
Reference in a new issue