Lexevolution commited on
Commit
3b047c2
·
unverified ·
1 Parent(s): a9f3ce0

Add newline per segment for text output (#254)

Browse files
Files changed (1) hide show
  1. examples/main/main.cpp +1 -1
examples/main/main.cpp CHANGED
@@ -266,7 +266,7 @@ bool output_txt(struct whisper_context * ctx, const char * fname) {
266
  const int n_segments = whisper_full_n_segments(ctx);
267
  for (int i = 0; i < n_segments; ++i) {
268
  const char * text = whisper_full_get_segment_text(ctx, i);
269
- fout << text;
270
  }
271
 
272
  return true;
 
266
  const int n_segments = whisper_full_n_segments(ctx);
267
  for (int i = 0; i < n_segments; ++i) {
268
  const char * text = whisper_full_get_segment_text(ctx, i);
269
+ fout << text << "\n";
270
  }
271
 
272
  return true;