mirror of
https://github.com/SWivid/F5-TTS.git
synced 2026-01-06 18:14:38 -08:00
fix
This commit is contained in:
@@ -812,8 +812,8 @@ def create_metadata(name_project, ch_tokenizer, progress=gr.Progress()):
|
||||
print(f"Error processing {file_audio}: {e}")
|
||||
continue
|
||||
|
||||
if duration < 1 and duration > 25:
|
||||
error_files.append([file_audio, "duration < 1 and > 25 "])
|
||||
if duration < 1 or duration > 25:
|
||||
error_files.append([file_audio, "duration < 1 or > 25 "])
|
||||
continue
|
||||
if len(text) < 4:
|
||||
error_files.append([file_audio, "very small text len 3"])
|
||||
|
||||
Reference in New Issue
Block a user