Skip to content

Commit

Permalink
whisper : account speed_up flag for short audio (close #405)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jan 15, 2023
1 parent 0b85e8c commit 00ea216
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 00ea216

Please sign in to comment.