diff options
Diffstat (limited to 'roles/caption/templates')
-rwxr-xr-x | roles/caption/templates/process-captions.py | 2 |
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) |