class

EasySubtitle::WhisperRunner

Inherits EasySubtitle::SyncBackend / Reference / Object

Constants

ALASS_BINARY_NAMES = ["alass", "alass-cli"]
MODEL_BASE_URL = "https://huggingface.co/ggerganov/whisper.cpp/resolve/main"
MODEL_DIR = ((Path.home / ".cache") / "easy-subtitle") / "models"
MODELS = {"base.en" => "ggml-base.en.bin", "small" => "ggml-small.bin", "medium" => "ggml-medium.bin", "large-v3" => "ggml-large-v3.bin"}
REF_DIR = ((Path.home / ".cache") / "easy-subtitle") / "whisper-refs"
WHISPER_BINARY_NAMES = ["whisper-cli", "whisper", "main"]

Constructors

new(config : Config, log : Log, timeout : Time::Span = DEFAULT_TIMEOUT)
Source

Instance methods

available?
Source
binary_names
Source
install_help
Source
name
Source
sync(video_path : Path, sub_in : Path, sub_out : Path) : ShellResult
Source