Skip to main content

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.ts
import {isWhisperModelCached} from '@remotion/whisper-webgpu'; const downloaded = await isWhisperModelCached({ 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

BrowsersEnvironments
Chrome
Firefox
Safari

See also