summaryrefslogtreecommitdiffstats
path: root/roles/caption/templates/process-captions.py
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-11-09 09:24:54 -0500
committerSacha Chua <sacha@sachachua.com>2022-11-09 09:24:54 -0500
commit921b613ed8af5f87c247d92406f9ff4e42a5aed7 (patch)
tree1109d78ffd25a61a2f5cfc08e8d5d8b0d6834df7 /roles/caption/templates/process-captions.py
parentc2d647a3cb3a6d456684bcdce327954214352959 (diff)
downloademacsconf-ansible-921b613ed8af5f87c247d92406f9ff4e42a5aed7.tar.xz
emacsconf-ansible-921b613ed8af5f87c247d92406f9ff4e42a5aed7.zip
Add kitty, kitty-term
Diffstat (limited to '')
-rwxr-xr-xroles/caption/templates/process-captions.py2
1 files changed, 1 insertions, 1 deletions
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)