From 921b613ed8af5f87c247d92406f9ff4e42a5aed7 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Wed, 9 Nov 2022 09:24:54 -0500 Subject: Add kitty, kitty-term --- roles/caption/templates/process-captions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/caption/templates') diff --git a/roles/caption/templates/process-captions.py b/roles/caption/templates/process-captions.py index 1b6515c..9b345fe 100755 --- a/roles/caption/templates/process-captions.py +++ b/roles/caption/templates/process-captions.py @@ -141,7 +141,7 @@ def generate_captions(work): audio = whisper.load_audio(work['audio']) if TRIM_AUDIO: audio = whisper.pad_or_trim(audio) - result = model.transcribe(audio, verbose=True) + result = model.transcribe(audio, verbose=True, language="en") result = clean_up_timestamps(result) with open(new_file, 'w') as vtt: whisper.utils.write_vtt(result['segments'], file=vtt) -- cgit v1.2.3