Capítulo 827 de 988

Chapter 827: Edit captions

Core Idea

If the AI has made a mistake in the caption, there are three different ways to correct them:

Key Concepts

  • Correct
  • Highlight Words

Code Examples

const autocorrectWord = (word: Word): Word => {
  // Replace a single word with another one
  if (word.word === " github") {
    return {
      ...word,
      word: word.word.replace("github", " GitHub"),
    };
  }

  return word;
};
  • What it demonstrates: Usage pattern for Edit captions from the official docs.

Key Takeaways

  1. Understand correct when working with Edit captions.
  2. Understand highlight words when working with Edit captions.

Connects To

  • Captions: related page in the Recorder (@remotion/recorder) section.
  • Create: related page in the Recorder (@remotion/recorder) section.
  • Demo: related page in the Recorder (@remotion/recorder) section.