mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-16 10:58:39 +01:00
main : CSV format export trimmed spaces fix (#444)
* Update main.cpp Removed string trimming * Update main.cpp * Update main.cpp * Revert "Update main.cpp" This reverts commitd8924fdcfe
. * Revert "Update main.cpp" This reverts commit252e508d85
.
This commit is contained in:
parent
2bee2650c6
commit
3b1960520a
@ -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…
Reference in New Issue
Block a user