FlippFuzz commited on
Commit
686caa1
1 Parent(s): 5756abf

Debugging: In adjust_timestamp(), be more verbose if (segment_start > max_source_time) or (segment_end > max_source_time)

Browse files
Files changed (1) hide show
  1. src/vad.py +4 -0
src/vad.py CHANGED
@@ -396,6 +396,10 @@ class AbstractTranscription(ABC):
396
  # Filter segments?
397
  if (max_source_time is not None):
398
  if (segment_start > max_source_time):
 
 
 
 
399
  continue
400
  segment_end = min(max_source_time, segment_end)
401
 
 
396
  # Filter segments?
397
  if (max_source_time is not None):
398
  if (segment_start > max_source_time):
399
+ print("Dropped {} because segment_start > max_source_time".format(format_timestamp(segment_start, True)))
400
+ continue
401
+ if (segment_end > max_source_time):
402
+ print("Warning. segment_end > max_source_time {}".format(format_timestamp(segment_end, True)))
403
  continue
404
  segment_end = min(max_source_time, segment_end)
405