返回顶部
r

remotion-excalidraw-ttsExcalidraw语音视频

Generate a narrated Remotion video from an Excalidraw (.excalidraw) diagram using text-to-speech (macOS say) and render to MP4. Use when creating explainer videos with pan/zoom + focus highlights over Excalidraw diagrams, with automated voiceover generation and Remotion CLI rendering.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
1,059
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

remotion-excalidraw-tts

Remotion + Excalidraw + TTS (本地)

使用此技能将 Excalidraw 图表 + 旁白脚本 转换为渲染后的 MP4 文件,基于以下工具:

  • - Remotion(渲染)
  • Excalidraw(直接渲染 .excalidraw JSON 文件)
  • 通过 macOS say 实现的 TTS(离线)

快速开始(单条命令)

运行:

bash
python3 skills/remotion-excalidraw-tts/scripts/make_video.py \
--diagram /absolute/path/to/diagram.excalidraw \
--voiceover-text /absolute/path/to/voiceover.txt \
--out /absolute/path/to/out.mp4

可选:通过分镜 JSON 驱动摄像机/焦点/字幕:

bash
python3 skills/remotion-excalidraw-tts/scripts/make_video.py \
--diagram /absolute/path/to/diagram.excalidraw \
--voiceover-text /absolute/path/to/voiceover.txt \
--storyboard-json /absolute/path/to/storyboard.json \
--out /absolute/path/to/out.mp4

功能说明:
1) 将 assets/template/remotion-project/ 中的 Remotion 模板项目复制到临时工作目录
2) 写入 public/diagram.excalidraw
3) 通过 say + ffmpeg 生成 public/voiceover.mp3
4) 将合成时长设置为与旁白长度匹配
5) 使用 npx remotion render 渲染 MP4

输入参数

  • - --diagram:.excalidraw JSON 文件(从 Excalidraw 导出)
  • --voiceover-text:纯文本文件(支持中文)

可选参数:

  • - --voiceover-mp3:如果已有音频,可跳过 TTS
  • --tts-backend:say(默认)| openai | elevenlabs
  • --fps:默认 30

TTS 后端:

  • - macOS say:--tts-backend say --voice Tingting --rate 220
  • OpenAI:--tts-backend openai --openai-model gpt-4o-mini-tts --openai-voice alloy(需要 OPENAIAPIKEY)
  • ElevenLabs:--tts-backend elevenlabs --elevenlabs-voice-id --elevenlabs-model elevenmultilingualv2(需要 ELEVENLABSAPIKEY)

自定义场景(平移/缩放/高亮)

选项 A:编辑 TypeScript 分镜

模板代码位于:

  • - assets/template/remotion-project/src/video/storyboard/storyboard.ts

编辑场景:

  • - cameraFrom/cameraTo(x/y/缩放)
  • focus 矩形(x/y/宽度/高度 + 标签)
  • subtitle

选项 B(推荐):提供 storyboard.json

传递 --storyboard-json /abs/path/storyboard.json。

模式参考:

  • - references/storyboard.schema.json

最小示例:

json
{
scenes: [
{
name: intro,
durationSec: 10,
subtitle: 很多智能体隔天就失忆。,
cameraFrom: {x: 0, y: 0, scale: 1},
cameraTo: {x: 0, y: 0, scale: 1},
focus: {x: 140, y: 120, width: 1640, height: 340, label: 问题}
}
]
}

系统要求

  • - macOS(用于 say)
  • ffmpeg + ffprobe
  • Node.js + npm(脚本会在临时项目中运行 npm i)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 remotion-excalidraw-tts-1776334878 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 remotion-excalidraw-tts-1776334878 技能

通过命令行安装

skillhub install remotion-excalidraw-tts-1776334878

下载

⬇ 下载 remotion-excalidraw-tts v1.1.0(免费)

文件大小: 89.01 KB | 发布时间: 2026-4-17 14:59

v1.1.0 最新 2026-4-17 14:59
Add OpenAI + ElevenLabs TTS backends; support external storyboard.json to drive camera/focus/subtitles

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部