]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
stream : fix build
authorGeorgi Gerganov <redacted>
Thu, 15 Dec 2022 18:15:36 +0000 (20:15 +0200)
committerGeorgi Gerganov <redacted>
Thu, 15 Dec 2022 18:15:36 +0000 (20:15 +0200)
examples/stream/stream.cpp

index d281609436d7cd0be0c290d16c98bf5335b68b97..1b3586df12862105d6b4292bcc7e78898f712b54 100644 (file)
@@ -14,6 +14,7 @@
 #include <thread>
 #include <vector>
 #include <fstream>
+#include <mutex>
 
 //  500 -> 00:05.000
 // 6000 -> 01:00.000
@@ -633,7 +634,7 @@ int main(int argc, char ** argv) {
                     const int64_t t0 = std::max(0.0, t1 - pcmf32.size()*1000.0/WHISPER_SAMPLE_RATE);
 
                     printf("\n");
-                    printf("### Transcription %d START | t0 = %lld ms | t1 = %lld ms\n", n_iter, t0, t1);
+                    printf("### Transcription %d START | t0 = %d ms | t1 = %d ms\n", n_iter, (int) t0, (int) t1);
                     printf("\n");
                 }