Skip to content

v1.9.0 — Talking avatars speak

Latest

Choose a tag to compare

@go4cas go4cas released this 27 Jun 11:28
· 1 commit to main since this release

Tier 2 of talking avatars: they now speak out loud with lips synced to the words.

Added

  • cast-avatar/speakspeak(target, text, opts?) reads text with the browser's native Web Speech API (no dependency) and flaps the mouth of an avatar rendered with animate: 'talk' in time with it; stopSpeaking(target?) cancels. Returns a Promise that resolves when speech ends. SSR-safe (a no-op with no speech engine) and respects prefers-reduced-motion (speaks, but skips mouth motion). The mouth rests still once speech ends.
  • <cast-avatar> gains a .speak(text, opts?) method and now accepts an animate attribute (so <cast-avatar animate="talk"> is speakable).

🤖 Generated with Claude Code