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
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
- Understand correct when working with Edit captions.
- 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.