David AI · Datasets · Speech to speech

Speech to speech animation

Stacked input and output voice messages with playback waveforms above the Pulse model. Every video is a 1020 × 960, 60 fps, 45 s seamless loop. The animation on this page is the code embed, running live.

  1. Video on background

    H.264 · .mp4 · on #f1f2ea · 1.6 MB

    For slides, social posts, and pages with the same background.

    Download MP4
  2. Transparent video (source)

    ProRes 4444 with alpha · .mov · 291 MB

    For video editors and motion tools (Premiere, After Effects, Final Cut, DaVinci Resolve).

    Download MOV
  3. Transparent video (for browser)

    WebM (VP9) 3.0 MB · MOV (HEVC) 5.3 MB, both with alpha

    Small transparent videos for a <video> tag on a website. Browsers need different formats, so use both files.

    Add it to a page

    Upload both files and replace the two src paths. Keep the Safari file first: each browser plays the first file it supports, and Chrome, Edge, and Firefox skip it when they can’t.

    <video autoplay loop muted playsinline width="510" height="480">
      <source src="speech-to-speech-1020x960-60fps-hevc.mov" type='video/mp4; codecs="hvc1.1.6.L120.B0"'>
      <source src="speech-to-speech-1020x960-60fps-vp9.webm" type="video/webm">
    </video>
  4. Code embed

    speech-to-speech-animation.js · 56 KB (19 KB gzipped) · no dependencies

    A live, real-time version for websites. Works in Webflow, plain HTML, or any framework.

    Download JS

    1. Load the script once, before </body>

    Host speech-to-speech-animation.js on your site or CDN. In Webflow: Site settings → Custom code → Footer code.

    <script src="https://YOUR-HOST/speech-to-speech-animation.js"></script>

    2. Add the attribute to any div with a size

    In Webflow: select a Div Block, then Settings → Custom attributes → name data-speech-to-speech-animation, no value. Give it a width and a height or aspect ratio.

    <div data-speech-to-speech-animation style="aspect-ratio: 510 / 480"></div>

    Options (all optional)

    Attribute Default Range What it does
    data-speed 1 0 – 4 Motion speed. 0 is a still frame.
    data-colors brand 1 – 4 hex colors Pulse orb colors, such as #00c2a8, #2700eb. Fewer than 4 repeat.
    data-start visible visible, load, manual When it starts. With manual, call SpeechToSpeechAnimation.mount(el).play().

    Good to know

    • It pauses when scrolled off screen and shows a still frame for visitors who turn on reduced motion.
    • Elements added after the page loads (CMS lists, modals) start after one call to SpeechToSpeechAnimation.mountAll().
    • It needs WebGL2 (all current browsers). Without it, the div gets data-speech-to-speech-animation="unsupported", so you can style a fallback image with that selector.