VisoTalk
$npx skills add visotalk/visotalk -g
示例 / visotalk-intro

Narration is the new timeline

3:59介绍由智能体用 VisoTalk Agent SKILL 制作

影片的 1080p 视频,带旁白。“实时”则在你的浏览器里直接从文档播放。

旁白

点击一句话即可跳到那里。

它展示了什么。 每段动画、每个音效和背景音乐都挂在旁白的某个词上,所以改写一句台词、换一个声音或换一种语言,画面都会随之移动;同一份文档产出英文和中文两版影片。

源码文档的第一个场景

视频就是这份文档。旁白是每个 Line 的文字,每个动画都从其中的某个词开始,就在这个词被说出的时候。

  <Scene id="problem">
    <Line id="l1">Today's AI agents are remarkably good at making videos the way they make websites: they write code that draws, and code that moves.</Line>
    <Line id="l2">But an explainer also has a voice. The moment the picture has to keep up with the narration, it falls apart.</Line>
    <Line id="l3">Most video tools are built on a timeline. Every animation is pinned to a second.</Line>
    <Line id="l4" hold={1.2}>So change one sentence, and every animation after it lands a beat late.</Line>
    <Part id="coder"><Coder /></Part>
    <Animation>
      <Appear target={["ground", "chapter"]} at="start" dur={0} />
      <Appear target="coder" at="start" dur={0.6} />
      <Tween target="coder" to={{code: 1}} line="l1" word="ai agents" until={{line: "l1", word: "code that draws", edge: "end"}} easing="linear" />
      <Tween target="coder" to={{orbit: 1}} line="l1" word="code that moves" dur={1.2} />
      <Disappear target="coder" line="l2" word="but an explainer" dur={0.5} />
      <Appear target="rail" line="l2" word="but an explainer" offset={0.5} dur={0} />
      <Appear target="script-frame" line="l2" word="also has a voice" dur={0.5} />
      <Tween target="rail" to={{type: 1}} line="l2" word="also has a voice" dur={1.3} easing="linear" />
      <Tween target="rail" to={{head: 1}} line="l2" word="the moment" dur={2.52} easing="linear" />
      {/* the playhead crosses the sentence in a fixed 2.52 s (so this holds in every language); each picture comes in as it passes the picture's word (0.13, 0.43, 0.68, 0.95 of the way) */}
      <Appear target="pic-moon" line="l2" word="the moment" offset={0.33} dur={0.25} />
      <Appear target="pic-earth" line="l2" word="the moment" offset={1.07} dur={0.25} />
      <Appear target="pic-sun" line="l2" word="the moment" offset={1.73} dur={0.25} />
      <Appear target="pic-half" line="l2" word="the moment" offset={2.38} dur={0.25} />
      <Disappear target="script-frame" line="l3" word="built on a timeline" />
      <Tween target="rail" to={{ruler: 1}} line="l3" word="built on a timeline" dur={1.1} easing="easeOut" />
      <Set target="rail" to={{pinned: 1}} line="l3" word="pinned" />
      <Tween target="rail" to={{thread: 1}} line="l3" word="pinned" dur={0.8} />
      <Tween target="rail" to={{ins: 1}} line="l4" word="change one sentence" dur={0.9} />
      <Tween target="rail" to={{late: 1}} line="l4" word="a beat late" dur={0.5} />
    </Animation>
    <Sound asset="ding" line="l2" word="the moment" offset={0.33} volume={-13} />
    <Sound asset="ding" line="l2" word="the moment" offset={1.07} volume={-13} />
    <Sound asset="ding" line="l2" word="the moment" offset={1.73} volume={-13} />
    <Sound asset="ding" line="l2" word="the moment" offset={2.38} volume={-13} />
    <Sound asset="miss" line="l4" word="a beat late" volume={-12} />
  </Scene>
在 GitHub 上查看 examples/visotalk-intro/doc.tsx