Update main.cpp

This commit is contained in:
Alex Bacart 2023-01-25 05:02:29 +03:00 committed by GitHub
parent 73a2a20182
commit 252e508d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,7 +350,7 @@ bool output_csv(struct whisper_context * ctx, const char * fname) {
const int64_t t1 = whisper_full_get_segment_t1(ctx, i); const int64_t t1 = whisper_full_get_segment_t1(ctx, i);
//need to multiply times returned from whisper_full_get_segment_t{0,1}() by 10 to get milliseconds. //need to multiply times returned from whisper_full_get_segment_t{0,1}() by 10 to get milliseconds.
fout << 10 * t0 << ", " << 10 * t1 << ", \"" << text << "\"\n"; fout << 10 * t0 << "," << 10 * t1 << ",\"" << text << "\"\n";
} }
return true; return true;