Update main.cpp

Removed string trimming
pull/444/head
Alex Bacart 1 year ago committed by GitHub
parent 11f61cecd6
commit 73a2a20182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -346,9 +346,6 @@ bool output_csv(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);
if (text[0] == ' ') {
text = text + sizeof(char); //whisper_full_get_segment_text() returns a string with leading space, point to the next character.
}
const int64_t t0 = whisper_full_get_segment_t0(ctx, i);
const int64_t t1 = whisper_full_get_segment_t1(ctx, i);

Loading…
Cancel
Save