]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
whisper : more prominent log message for sub-1s audio (#2065)
authorGeorgi Gerganov <redacted>
Wed, 24 Apr 2024 11:45:27 +0000 (14:45 +0300)
committerGeorgi Gerganov <redacted>
Wed, 24 Apr 2024 11:46:06 +0000 (14:46 +0300)
whisper.cpp

index b9e1ef2ced157ef5844560b860b0c63284232cd6..1a6d889af285a25630ef4efded4e608ba5a688f6 100644 (file)
@@ -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;
     }