This commit is contained in:
Mahmoud Ashraf
2023-10-15 16:25:15 +03:00
committed by GitHub
parent 4cdce3b927
commit 02c0323777

View File

@ -194,8 +194,8 @@ def align(
aligned_segments.append(aligned_seg)
continue
if t1 >= MAX_DURATION or t2 - t1 < 0.02:
print("Failed to align segment: original start time longer than audio duration, skipping...")
if t1 >= MAX_DURATION:
print(f'Failed to align segment ("{segment["text"]}"): original start time longer than audio duration, skipping...')
aligned_segments.append(aligned_seg)
continue