Skip to main content

removeWhisperModel()v4.0.523

Removes a Whisper model from memory and the persistent browser cache.

If the model is still loading or transcribing, removal waits for the operation to finish.

remove-model.ts
import {removeWhisperModel} from '@remotion/whisper-webgpu'; await removeWhisperModel({model: 'small.en'});

Options

model

One of the names returned by getAvailableModels().

Compatibility

BrowsersEnvironments
Chrome
Firefox
Safari

See also