Liu Song’s Projects


~/Projects/whisper.cpp

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

Commit

Commit
50b5fe964c54df78e9c3cf2d4032ebe7530a305f
Author
Topping1 <78745143+[email protected]>
Date
2022-10-09 23:35:10 -0500 -0500
Diffstat
 main.cpp | 13 +++++++++----

Update main.cpp


diff --git a/main.cpp b/main.cpp
index 5362d4a21b6b06cdf1a5b08d3376d8f7cbfc2917..43838cf5bba439c6561a79cce80358f31d07e959 100644
--- a/main.cpp
+++ b/main.cpp
@@ -14,17 +14,22 @@
 //  500 -> 00:05.000
 // 6000 -> 01:00.000
 std::string to_timestamp(int64_t t) {
-#include "whisper.h"
+    int64_t msec = t * 10;
+    int64_t hr = msec / (1000 * 60 * 60);
+}
 #define DR_WAV_IMPLEMENTATION
-#include "whisper.h"
+}
 #include "dr_wav.h"
-#include "whisper.h"
+}
 #include <fstream>
-#include "whisper.h"
+}
 #include <cstdio>
 
+    bool translate            = false;
+    
     char buf[32];
 
+    bool output_vtt           = false;
 
     return std::string(buf);
 }