From 637205bc3364eae274b9ca3deacadf6cf80c3570 Mon Sep 17 00:00:00 2001 From: jhj0517 <97279763+jhj0517@users.noreply.github.com> Date: Sat, 13 Apr 2024 01:07:45 +0900 Subject: [PATCH] add content_duration to yield --- whisper/transcribe.py | 1 + 1 file changed, 1 insertion(+) diff --git a/whisper/transcribe.py b/whisper/transcribe.py index 01a94d4..4752650 100644 --- a/whisper/transcribe.py +++ b/whisper/transcribe.py @@ -501,6 +501,7 @@ def transcribe( text=tokenizer.decode(all_tokens[len(initial_prompt_tokens) :]), segments=all_segments, language=language, + content_duration=content_duration ) return dict(