explainroo
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMake an explainer video with explainroo
使用 explainroo 制作讲解视频
explainroo makes an MP4 video from two files: a script with the words the
voice says, and a small JavaScript file that draws the pictures. A voice
model on this computer reads the script. explainroo writes down when each
word is spoken, Chrome draws the frames, and explainroo adds music and sound
effects.
explainroo 使用两个文件生成 MP4 视频:一个是包含旁白内容的脚本,另一个是用于绘制画面的小型 JavaScript 文件。本机的语音模型会朗读脚本。explainroo 记录每个词的发声时间,Chrome 绘制各个帧,explainroo 再添加音乐和音效。
Find or install explainroo
查找或安装 explainroo
Try these first:
bash
command -v explainroo
ls "${EXPLAINROO_HOME:-$HOME/.explainroo}/bin/explainroo.js"If neither exists, install it. It needs Node.js 20.11 or newer, ffmpeg, and
Chrome or Chromium.
bash
git clone https://github.com/vincentsch/explainroo.git "$HOME/.explainroo"
cd "$HOME/.explainroo" && npm install
node bin/explainroo.js doctor --fetchIn the rest of this file, means whichever one you found: the
command, or .
explainrooexplainroonode "$HOME/.explainroo/bin/explainroo.js"先尝试以下命令:
bash
command -v explainroo
ls "${EXPLAINROO_HOME:-$HOME/.explainroo}/bin/explainroo.js"如果两者都不存在,则进行安装。它需要 Node.js 20.11 或更高版本、ffmpeg,以及 Chrome 或 Chromium。
bash
git clone https://github.com/vincentsch/explainroo.git "$HOME/.explainroo"
cd "$HOME/.explainroo" && npm install
node bin/explainroo.js doctor --fetch在本文件的其余部分中, 指找到的任意一种形式: 命令,或 。
explainrooexplainroonode "$HOME/.explainroo/bin/explainroo.js"Read AGENTS.md
阅读 AGENTS.md
AGENTS.mdscenes.jsexplainroo 文件夹中的 包含操作步骤、编写规则、设置以及 Scene API,后者是 能够绘制的内容列表。开始之前请先阅读该文件。
AGENTS.mdscenes.jsMake the video
制作视频
Create the project where the user wants it, for example :
./videobash
explainroo init video --theme paper --title "..."Then follow the steps in AGENTS.md. When the video is done, tell the user
where is, how long it is, and what
said.
video/out/video.mp4explainroo verify video在用户希望的位置创建项目,例如 :
./videobash
explainroo init video --theme paper --title "..."然后按照 AGENTS.md 中的步骤操作。视频制作完成后,告诉用户 的位置、视频时长,以及 的输出结果。
video/out/video.mp4explainroo verify video