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.tsimport {removeWhisperModel } from '@remotion/whisper-webgpu'; awaitremoveWhisperModel ({model : 'small.en'});
Options
model
One of the names returned by getAvailableModels().
Compatibility
| Browsers | Servers | Environments | |||||||
|---|---|---|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | Node.js | Bun | Serverless Functions | ||||