From 02c032377758244961f95f33152132cf1cf48879 Mon Sep 17 00:00:00 2001 From: Mahmoud Ashraf Date: Sun, 15 Oct 2023 16:25:15 +0300 Subject: [PATCH] fix --- whisperx/alignment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whisperx/alignment.py b/whisperx/alignment.py index 7f3d586..874502b 100644 --- a/whisperx/alignment.py +++ b/whisperx/alignment.py @@ -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