From 73a2a201824d0077b1a6e99b411b9e2f507399a7 Mon Sep 17 00:00:00 2001 From: Alex Bacart <13940752+alex-bacart@users.noreply.github.com> Date: Tue, 24 Jan 2023 20:21:21 +0300 Subject: [PATCH] Update main.cpp Removed string trimming --- examples/main/main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/main/main.cpp b/examples/main/main.cpp index 68f427c..10d6b3c 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -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);