Skip to main content

downloadWhisperModel()

Deprecated

@remotion/whisper-web is deprecated and will no longer be published starting with Remotion 5.0. Use downloadWhisperModel() from @remotion/whisper-webgpu instead.

Downloads a Whisper model into IndexedDB.

app.ts
import {downloadWhisperModel} from '@remotion/whisper-web'; const {alreadyDownloaded} = await downloadWhisperModel({ model: 'tiny.en', onProgress: (progress) => { console.log(progress); }, });

Options​

model​

The model to download. Possible values: tiny, tiny.en, base, base.en, small, small.en.

onProgress​

Act upon download progress. This is the function signature:

import {DownloadWhisperModelOnProgress, DownloadWhisperModelProgress} from '@remotion/whisper-web';

const onProgress: DownloadWhisperModelOnProgress = ({progress, totalBytes, downloadedBytes}: DownloadWhisperModelProgress) => {
  console.log({progress, totalBytes, downloadedBytes});
};

Return Value​

Returns an object with the following properties:

alreadyDownloaded​

Whether the model has already been downloaded.

See also​