Spaces:
Sleeping
Sleeping
Lexevolution
commited on
Add newline per segment for text output (#254)
Browse files- 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;
|