From 8aa8bcedf55f109e3c96ebc6db9c8d1ee44e472a Mon Sep 17 00:00:00 2001 From: Lexevolution <31176843+Lexevolution@users.noreply.github.com> Date: Sat, 10 Dec 2022 19:49:25 +1000 Subject: [PATCH] Add newline per segment for text output --- examples/main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/main/main.cpp b/examples/main/main.cpp index 465d43f..4071bd2 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -266,7 +266,7 @@ bool output_txt(struct whisper_context * ctx, const char * fname) { const int n_segments = whisper_full_n_segments(ctx); for (int i = 0; i < n_segments; ++i) { const char * text = whisper_full_get_segment_text(ctx, i); - fout << text; + fout << text << "\n"; } return true;