Spaces:
Running
Running
whisper : more prominent log message for sub-1s audio (#2065)
Browse files- whisper.cpp +1 -1
whisper.cpp
CHANGED
|
@@ -5272,7 +5272,7 @@ int whisper_full_with_state(
|
|
| 5272 |
// basically don't process anything that is less than 1.0s
|
| 5273 |
// see issue #39: https://github.com/ggerganov/whisper.cpp/issues/39
|
| 5274 |
if (seek_end < seek_start + (params.speed_up ? 50 : 100)) {
|
| 5275 |
-
|
| 5276 |
return 0;
|
| 5277 |
}
|
| 5278 |
|
|
|
|
| 5272 |
// basically don't process anything that is less than 1.0s
|
| 5273 |
// see issue #39: https://github.com/ggerganov/whisper.cpp/issues/39
|
| 5274 |
if (seek_end < seek_start + (params.speed_up ? 50 : 100)) {
|
| 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);
|
| 5276 |
return 0;
|
| 5277 |
}
|
| 5278 |
|