Add newline per segment for text output (#254)

pull/260/head
Lexevolution 1 year ago committed by GitHub
parent ea38ad6e70
commit 6ed786957e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save