Skip to content

Commit 7f85e1d

Browse files
committed
whisper : more prominent log message for sub-1s audio (#2065)
1 parent b0c3cbf commit 7f85e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

whisper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5272,7 +5272,7 @@ int whisper_full_with_state(
52725272
// basically don't process anything that is less than 1.0s
52735273
// see issue #39: https://github.com/ggerganov/whisper.cpp/issues/39
52745274
if (seek_end < seek_start + (params.speed_up ? 50 : 100)) {
5275-
WHISPER_LOG_DEBUG("%s: input is too short - %d ms < 1000 ms\n", __func__, (seek_end - seek_start)*10);
5275+
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);
52765276
return 0;
52775277
}
52785278

0 commit comments

Comments
 (0)