getAvailableModels()
warning
Unstable API: This package is experimental for the moment. As we test it, we might make a few changes to the API and switch to a WebGPU-based backend in the future.
Returns an array of all available Whisper models with their names and download sizes.
import {getAvailableModels } from '@remotion/whisper-web';
const availableModels = getAvailableModels ();
console .log (availableModels );
// [
// { name: 'tiny', downloadSize: 77691713 },
// { name: 'tiny.en', downloadSize: 77704715 },
// { name: 'base', downloadSize: 147951465 },
// { name: 'base.en', downloadSize: 147964211 },
// { name: 'small', downloadSize: 487601967 },
// { name: 'small.en', downloadSize: 487614201 }
// ]Return value
Returns an array of AvailableModel objects. Each object contains:
name: AWhisperWebModelstring representing the model namedownloadSize: A number representing the download size in bytes