🎥 Make videos programmatically with React
better captions doc
Patric Salvisberg9222367cac36
diff --git a/packages/docs/docs/recorder/editing/captions.mdx b/packages/docs/docs/recorder/editing/captions.mdxindex 0f477ead68..ebc59e63f4 100644--- a/packages/docs/docs/recorder/editing/captions.mdx+++ b/packages/docs/docs/recorder/editing/captions.mdx@@ -7,9 +7,38 @@ crumb: Recorder## Correct-If the AI has made a mistake in the caption, inside the Remotion Studio you can correct it by clicking on the faulty subtitle in the video. This opens a text editor containing the subtitles, from where you can directly edit them.-Once you are done with your corrections, click on "Done" in the right bottom corner of the editor. This will save the changes you made into the JSON file containing your subtitles.-Alternativel, you can directly edit your JSON files located at `public/<your-composition-id>` in your project with an editor of your choice.+If the AI has made a mistake in the caption, there are three different ways to correct them:++<Step>1</Step>Inside the Remotion Studio you can correct it by clicking on the+faulty subtitle in the video. This opens a text editor containing the subtitles,+from where you can directly edit them. Once you are done with your corrections,+click on "Done" in the right bottom corner of the editor. This will save the+changes you made into the JSON file containing your subtitles.+<br />+<br />++<Step>2</Step>You can directly edit your JSON files located at <code>+ public/[your-composition-id]+</code> in your project with an editor of your choice.+<br />+<br />+<Step>3</Step>If the AI makes the same mistake multiple times, you can also remap+words programatically inside the <code>config/autocorrect.ts</code> file by adding+logic inside the <code>autocorrectWord</code> function. For example:++```tsx+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;+};+```## Highlight Words