示例 / shinkansen
新幹線はなぜ時間通りに来るのか
1:14讲解 · 日语由智能体用 VisoTalk Agent SKILL 制作
影片的 1080p 视频,带旁白。“实时”则在你的浏览器里直接从文档播放。
旁白
点击一句话即可跳到那里。
它展示了什么。 第三种语言:日语旁白,按文档语言选用 Noto Sans JP,画面由数字绘制,比如列车间隔和夜间的小时数。
源码文档的第一个场景
视频就是这份文档。旁白是每个 Line 的文字,每个动画都从其中的某个词开始,就在这个词被说出的时候。
<Scene id="figure">
<Line id="f1">東京から大阪まで、新幹線は一日に何百本も走ります。</Line>
<Line id="f2" text="それでも、遅れは平均で約1分です。" hold={1.4}>それでも、遅れは平均で約一分です。</Line>
<Part id="route" x={0} y={170} w={1920} h={640}>{() => <Route />}</Part>
<Part id="dial" x={0} y={0} w={1920} h={1080}>{() => <Dial />}</Part>
<Part id="delay" x={1020} y={250} w={800} h={520}>{() => (
<div style={{fontFamily: SANS, color: INK}}>
<Obj id="delay-kicker" style={{fontSize: 56, fontWeight: 700, color: MUTED}}>平均の遅れ</Obj>
<Obj id="delay-big" style={{fontSize: 260, fontWeight: 700, lineHeight: 1.05, color: ORANGE}}>約1分</Obj>
<Obj id="delay-note" style={{fontSize: 32, color: MUTED}}>東海道新幹線・年度平均のめやす</Obj>
</div>
)}</Part>
<Animation>
<Appear target="route" line="f1" word="東京から" />
<Appear target="route-line" line="f1" word="東京から" dur={0.9} />
<Appear target="train-main" line="f1" word="新幹線は" />
<Tween target="route-line" to={{draw: 1}} dur={0.9} line="f1" word="東京から" />
<Tween target="train-main" to={{x: 1000}} dur={3.6} easing="easeInOutSine" line="f1" word="一日に" />
<Appear target="train-more" line="f1" word="何百本" />
<Disappear target="route" line="f2" word="それでも" />
<Appear target="dial" line="f2" word="遅れは" />
<Appear target="dial-face" line="f2" word="遅れは" />
<Appear target="delay" line="f2" word="遅れは" />
<Appear target="delay-kicker" line="f2" word="遅れは" />
<Tween target="dial" to={{sweep: 6}} dur={1.2} easing="easeOut" line="f2" word="平均で" />
<Appear target="delay-big" line="f2" word="約一分" />
<Appear target="delay-note" line="f2" word="約一分" offset={0.5} />
</Animation>
</Scene>在 GitHub 上查看 examples/shinkansen/doc.tsx改编做成你自己的
整个示例打包成一个文件:文档、它用到的图片和片段,以及已经朗读好的旁白。在 VisoTalk Studio 中导入它(首页上的导入 .visotalk)即可在那里修改,或者用 npx visotalk import shinkansen.visotalk 为 Agent SKILL 解包。