isWhisperModelCached()v4.0.518
Checks whether all files needed for a timestamped Whisper model are present in the browser cache. The check does not download or initialize the model.
model-cache.tsimport {isWhisperModelCached } from '@remotion/whisper-webgpu'; constdownloaded = awaitisWhisperModelCached ({model : 'small.en', });
Options
model
One of the names returned by getAvailableModels().
Return value
A Promise<boolean> resolving to true if every required model file is cached.
Compatibility
| Browsers | Environments | |||||
|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | ||||