File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -352,13 +352,14 @@ bool output_csv(struct whisper_context * ctx, const char * fname) {
352
352
fprintf (stderr, " %s: saving output to '%s'\n " , __func__, fname);
353
353
354
354
const int n_segments = whisper_full_n_segments (ctx);
355
+ fout << " start,end,text\n " ;
355
356
for (int i = 0 ; i < n_segments; ++i) {
356
357
const char * text = whisper_full_get_segment_text (ctx, i);
357
358
const int64_t t0 = whisper_full_get_segment_t0 (ctx, i);
358
359
const int64_t t1 = whisper_full_get_segment_t1 (ctx, i);
359
360
360
361
// need to multiply times returned from whisper_full_get_segment_t{0,1}() by 10 to get milliseconds.
361
- fout << 10 * t0 << " , " << 10 * t1 << " , \" " << text << " \"\n " ;
362
+ fout << 10 * t0 << " ," << 10 * t1 << " ,\" " << text << " \"\n " ;
362
363
}
363
364
364
365
return true ;
You can’t perform that action at this time.
0 commit comments