Spaces:
Sleeping
Sleeping
stream : fix build
Browse files
examples/stream/stream.cpp
CHANGED
|
@@ -14,6 +14,7 @@
|
|
| 14 |
#include <thread>
|
| 15 |
#include <vector>
|
| 16 |
#include <fstream>
|
|
|
|
| 17 |
|
| 18 |
// 500 -> 00:05.000
|
| 19 |
// 6000 -> 01:00.000
|
|
@@ -633,7 +634,7 @@ int main(int argc, char ** argv) {
|
|
| 633 |
const int64_t t0 = std::max(0.0, t1 - pcmf32.size()*1000.0/WHISPER_SAMPLE_RATE);
|
| 634 |
|
| 635 |
printf("\n");
|
| 636 |
-
printf("### Transcription %d START | t0 = %
|
| 637 |
printf("\n");
|
| 638 |
}
|
| 639 |
|
|
|
|
| 14 |
#include <thread>
|
| 15 |
#include <vector>
|
| 16 |
#include <fstream>
|
| 17 |
+
#include <mutex>
|
| 18 |
|
| 19 |
// 500 -> 00:05.000
|
| 20 |
// 6000 -> 01:00.000
|
|
|
|
| 634 |
const int64_t t0 = std::max(0.0, t1 - pcmf32.size()*1000.0/WHISPER_SAMPLE_RATE);
|
| 635 |
|
| 636 |
printf("\n");
|
| 637 |
+
printf("### Transcription %d START | t0 = %d ms | t1 = %d ms\n", n_iter, (int) t0, (int) t1);
|
| 638 |
printf("\n");
|
| 639 |
}
|
| 640 |
|