From 8b5615cefa2c8704f6db94d82105e2237a98b69d Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Fri, 23 Sep 2022 20:32:37 +0900 Subject: [PATCH] Fix --- whisper_streaming/transcriber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper_streaming/transcriber.py b/whisper_streaming/transcriber.py index 4dbf38c..a11f2f8 100644 --- a/whisper_streaming/transcriber.py +++ b/whisper_streaming/transcriber.py @@ -160,7 +160,7 @@ class WhisperStreamingTranscriber: tokens[last_slice - 1].item() - self.tokenizer.timestamp_begin ) self.buffer_tokens.extend(tokens[: last_slice + 1].tolist()) - self.timestamp += last_timestamp_position * self.input_stride + self.timestamp += last_timestamp_position * self.time_precision else: duration = segment_duration timestamps = tokens[timestamp_tokens.nonzero().flatten()]