Capítulo 750 de 988

Chapter 750: downloadWhisperModel()

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

  • Options
  • model
  • onProgress?
  • Return Value
  • See also

Code Examples

const {alreadyDownloaded} = await downloadWhisperModel({
  model: 'tiny.en',
  onProgress: (progress) => {
    console.log(progress);
  },
});
  • What it demonstrates: Usage pattern for downloadWhisperModel() from the official docs.

Key Takeaways

  1. Understand options when working with downloadWhisperModel().
  2. Understand model when working with downloadWhisperModel().
  3. Understand onprogress? when working with downloadWhisperModel().
  4. Understand return value when working with downloadWhisperModel().
  5. Understand see also when working with downloadWhisperModel().

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.