Capítulo 751 de 988

Chapter 751: getAvailableModels()

Core Idea

:::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.

Key Concepts

  • Return value
  • See also

Code Examples

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 }
// ]
  • What it demonstrates: Usage pattern for getAvailableModels() from the official docs.

Key Takeaways

  1. Understand return value when working with getAvailableModels().
  2. Understand see also when working with getAvailableModels().

Connects To

  • Convert to Captions: related page in the Whisper Web (@remotion/whisper-web) section.
  • Download Whisper Model: related page in the Whisper Web (@remotion/whisper-web) section.
  • Install Whisper cpp: related page in the Whisper Web (@remotion/whisper-web) section.