Skip to content

[203] Add lipsync module - #172

Merged
Andriamanampisoa merged 2 commits into
stagingfrom
203-emit-talkinghead-lipsync-modules
Jul 14, 2026
Merged

[203] Add lipsync module#172
Andriamanampisoa merged 2 commits into
stagingfrom
203-emit-talkinghead-lipsync-modules

Conversation

@Andriamanampisoa

Copy link
Copy Markdown
Collaborator

What type of PR is this? (check all applicable)

  • ✨ Feature
  • 🛑 Bug
  • ⚠️ Anomaly
  • 📝 Doc
  • 🎨 Style
  • 🧑‍💻 Refactor
  • 🛠️ Setup
  • 🏗️ Build
  • 🔥 Perfs
  • ✅ Test
  • 🔁 CI
  • ⏩ Revert

Description

This pull request improves the talkinghead-lipsync-plugin for Vite to ensure lipsync .mjs files are correctly resolved and emitted during the build, addressing issues with missing assets in production environments. The main changes include making the plugin more robust in locating the lipsync modules and explicitly emitting the necessary .mjs files.

Linked GitHub Ticket

Closes EpitechPromo2027/G-EIP-600-NAN-6-1-eip-tugdual.de-reviers#203

Workspace

  • 🖥️ Web
  • 🛠️ Server
  • 🔁 CI
  • 🤖 Ai
  • 📱 App

@Andriamanampisoa Andriamanampisoa self-assigned this Jul 14, 2026
@cursor

cursor Bot commented Jul 14, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Scoped to the web Vite build plugin and static asset emission; no auth, API, or data-path changes.

Overview
Fixes production lipsync failures where TalkingHead’s dynamic ./lipsync-*.mjs requests were resolved at build time but never shipped, so hosts like Vercel served index.html for paths such as /assets/lipsync-fr.mjs.

The Vite plugin now locates @met4citizen/talkinghead’s modules folder via require.resolve (with a node_modules fallback) using ESM-safe paths instead of __dirname, and adds a generateBundle hook that copies every lipsync-*.mjs file into assets/ as static build output alongside the existing resolveId mapping.

Reviewed by Cursor Bugbot for commit cb2e632. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
talk-up-ai-dev Ready Ready Preview, Comment Jul 14, 2026 8:47pm

@railway-app
railway-app Bot temporarily deployed to talk-up-ai / TalkUp.AI-pr-172 July 14, 2026 20:42 Destroyed
@railway-app
railway-app Bot temporarily deployed to talk-up-ai / TalkUp.AI-pr-172 July 14, 2026 20:46 Destroyed
@Andriamanampisoa
Andriamanampisoa merged commit 1e67066 into staging Jul 14, 2026
7 checks passed
@Andriamanampisoa
Andriamanampisoa deleted the 203-emit-talkinghead-lipsync-modules branch July 14, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants