Skip to content

Commit

Permalink
Update logic get segment from features before encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
trungkienbkhn committed Feb 23, 2024
1 parent 06d32bf commit e20cc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faster_whisper/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def generate_segments(
content_frames - seek,
seek_clip_end - seek,
)
segment = features[:, seek : seek + segment_size]
segment = features[:, seek: seek + self.feature_extractor.nb_max_frames]
segment_duration = segment_size * self.feature_extractor.time_per_frame

if self.logger.isEnabledFor(logging.DEBUG):
Expand Down

0 comments on commit e20cc93

Please sign in to comment.