From 7c9355f8a0eb45babb1cae40d420a118718de9c9 Mon Sep 17 00:00:00 2001 From: keith siilats Date: Thu, 15 Dec 2022 00:38:55 -0500 Subject: [PATCH] Better error message on skipping a second Also, this works in the begging of the file, but in the middle I get repeated tokens sometimes and time timestamp keeps on advancing: [00:22:16.000 --> 00:22:18.000] Because you really need all the powers. [00:22:18.000 --> 00:22:27.000] [Indiscernible] [00:22:27.000 --> 00:22:28.000] Take off 1-8 center. [00:22:28.000 --> 00:22:40.000] [Indiscernible] [00:22:40.000 --> 00:22:48.000] [Indiscernible] [00:22:48.000 --> 00:22:49.000] 80 knots. [00:22:49.000 --> 00:22:53.000] Yes. [00:22:53.000 --> 00:22:54.000] V1. [00:22:54.000 --> 00:22:55.000] V1. [00:22:55.000 --> 00:22:56.000] V1. [00:22:56.000 --> 00:22:57.000] V1. [00:22:57.000 --> 00:22:58.000] V1. [00:22:58.000 --> 00:22:59.000] V1. [00:22:59.000 --> 00:23:00.000] V1. etc stuck at V1 --- whisper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper.cpp b/whisper.cpp index 1bc7996..23f7c4a 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -2780,7 +2780,7 @@ int whisper_full( } if (failed) { - fprintf(stderr, "\n%s: failed to generate timestamp token - using fallback strategy\n\n", __func__); + fprintf(stderr, "\n%s: failed to generate timestamp token - skipping one second\n\n", __func__); seek += 100; continue; }