Flush whisper segment stdout

pull/357/head
Chidi Williams 3 years ago
parent 745f999d2d
commit 9ab012f37a

@ -237,6 +237,7 @@ void whisper_print_segment_callback(struct whisper_context * ctx, int n_new, voi
printf("[%s --> %s] %s\n", to_timestamp(t0).c_str(), to_timestamp(t1).c_str(), text); printf("[%s --> %s] %s\n", to_timestamp(t0).c_str(), to_timestamp(t1).c_str(), text);
} }
fflush(stdout);
} }
} }
} }
@ -454,7 +455,7 @@ int main(int argc, char ** argv) {
std::vector<float> pcmf32; std::vector<float> pcmf32;
{ {
drwav wav; drwav wav;
if (fname_inp == "-") { if (fname_inp == "-") {
std::vector<uint8_t> wav_data; std::vector<uint8_t> wav_data;
{ {

Loading…
Cancel
Save