Skip to content

Commit

Permalink
whisper : account speed_up flag for short audio (close ggerganov#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored and rock3125 committed Feb 21, 2023
1 parent 0f13eac commit cc45da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3230,7 +3230,7 @@ int whisper_full(
// if length of spectrogram is less than 1s (100 samples), then return
// basically don't process anything that is less than 1s
// see issue #39: https://github.com/ggerganov/whisper.cpp/issues/39
if (seek_end < 100 + seek_start) {
if (seek_end < seek_start + (params.speed_up ? 50 : 100)) {
return 0;
}

Expand Down

0 comments on commit cc45da5

Please sign in to comment.