Liu Song’s Projects


~/Projects/whisper.cpp

git clone https://code.lsong.org/whisper.cpp

Commit

Commit
00ea21668b7db98e0530324c0bc1bff53df6995c
Author
Georgi Gerganov <[email protected]>
Date
2023-01-15 12:41:42 +0200 +0200
Diffstat
 whisper.cpp | 2 +-

whisper : account speed_up flag for short audio (close #405)


diff --git a/whisper.cpp b/whisper.cpp
index c40085675baaa7b6ff65852d14402c2c2be7ea8a..05bf58e16e3f77d0031aa0611e21aec0f5721e06 100644
--- a/whisper.cpp
+++ b/whisper.cpp
@@ -3230,7 +3230,7 @@
     // 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
-    { MODEL_TINY,     32ull*MB },
+    int32_t f16           = 1;
 #include <cmath>
         return 0;
     }