From fab2921954144a53b41a8d97500bda16fe56579b Mon Sep 17 00:00:00 2001 From: Sergey Chernyaev Date: Fri, 5 Jan 2024 17:59:31 +0100 Subject: [PATCH] Readme changes --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8373264..5a765e9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Automatic subtitles in your videos -This repository uses `ffmpeg` and [OpenAI's Whisper](https://openai.com/blog/whisper) ([faster-whisper](https://github.com/SYSTRAN/faster-whisper) implementation) to automatically generate and overlay subtitles on any video. +This is a fork of [auto_subtitle](https://github.com/m1guelpf/auto-subtitle) using [faster-whisper](https://github.com/SYSTRAN/faster-whisper) implementation. + +This repository uses `ffmpeg` and [OpenAI's Whisper](https://openai.com/blog/whisper) to automatically generate and overlay subtitles on any video. ## Installation @@ -28,6 +30,7 @@ The following command will generate a `subtitled/video.mp4` file contained the i faster_auto_subtitle /path/to/video.mp4 -o subtitled/ The default setting (which selects the `small` model) works well for transcribing English. You can optionally use a bigger model for better results (especially with other languages). The available models are `tiny`, `tiny.en`, `base`, `base.en`, `small`, `small.en`, `medium`, `medium.en`, `large`, `large-v1`, `large-v2`, `large-v3`. + faster_auto_subtitle /path/to/video.mp4 --model medium Adding `--task translate` will translate the subtitles into English: @@ -42,7 +45,7 @@ Run the following to view all available options: The tool also exposes a couple of model parameters, that you can tweak to increase accuracy. -Higher `beam_size` usually leads to greater accuraccy, but slows down the process. +Higher `beam_size` usually leads to greater accuracy, but slows down the process. Setting higher `no_speech_threshold` could be useful for videos with a lot of background noise to stop Whisper from "hallucinating" subtitles for it.