Skip to content

Commit

Permalink
whisper : more prominent log message for sub-1s audio (#2065)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Apr 24, 2024
1 parent b0c3cbf commit 7f85e1d
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 @@ -5272,7 +5272,7 @@ int whisper_full_with_state(
// basically don't process anything that is less than 1.0s
// see issue #39: https://github.com/ggerganov/whisper.cpp/issues/39
if (seek_end < seek_start + (params.speed_up ? 50 : 100)) {
WHISPER_LOG_DEBUG("%s: input is too short - %d ms < 1000 ms\n", __func__, (seek_end - seek_start)*10);
WHISPER_LOG_WARN("%s: input is too short - %d ms < 1000 ms. consider padding the input audio with silence\n", __func__, (seek_end - seek_start)*10);
return 0;
}

Expand Down

0 comments on commit 7f85e1d

Please sign in to comment.