forked from extern/whisper.cpp
Add newline per segment for text output (#254)
This commit is contained in:
parent
ea38ad6e70
commit
6ed786957e
@ -266,7 +266,7 @@ bool output_txt(struct whisper_context * ctx, const char * fname) {
|
|||||||
const int n_segments = whisper_full_n_segments(ctx);
|
const int n_segments = whisper_full_n_segments(ctx);
|
||||||
for (int i = 0; i < n_segments; ++i) {
|
for (int i = 0; i < n_segments; ++i) {
|
||||||
const char * text = whisper_full_get_segment_text(ctx, i);
|
const char * text = whisper_full_get_segment_text(ctx, i);
|
||||||
fout << text;
|
fout << text << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user