load_whisper_model: Load Whisper Model
Description
Load a Whisper model with weights from HuggingFace.
Usage
load_whisper_model(
model = "tiny",
device = "auto",
dtype = "auto",
download = FALSE,
verbose = TRUE
)
Arguments
- model
Model name: "tiny", "base", "small", "medium", "large-v3"
- device
Device to load model on ("auto", "cpu", "cuda")
- dtype
Data type ("auto", "float16", "float32")
- download
If TRUE and model not present, prompt to download
- verbose
Print loading messages
Examples
Run this code# \donttest{
# Load tiny model (requires prior download)
if (model_exists("tiny")) {
model <- load_whisper_model("tiny")
}
# }
Run the code above in your browser using DataLab