Add newline per segment for text output (#254)

This commit is contained in:
Lexevolution 2022-12-12 04:00:29 +10:00 committed by GitHub
parent ea38ad6e70
commit 6ed786957e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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