Skip to content

Commit

Permalink
Fix language detection with non-speech audio (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
trungkienbkhn authored Jul 5, 2024
1 parent 1195359 commit fbcf58b
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 @@ -390,7 +390,7 @@ def transcribe(
content_frames,
)
detected_language_info = {}
while seek < end_frames:
while seek <= end_frames:
segment = features[
:, seek : seek + self.feature_extractor.nb_max_frames
]
Expand Down

0 comments on commit fbcf58b

Please sign in to comment.