Skip to main content

removeWhisperModel()v4.0.523

Removes a Whisper model from memory and the persistent Transformers.js 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​

BrowsersServersEnvironments
Chrome
Firefox
Safari
Node.js
Bun
Serverless Functions

See also​