Install
Install with PiG
pig install npm:@celljs/ta-lipsInstall with Pi
pi install npm:@celljs/ta-lipsReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"web": [
"./web/index.js"
],
"host": "./host/index.mjs",
"icon": "Sparkles",
"title": {
"en": "Lifelike mouth",
"ja-JP": "リアルな口元",
"zh-CN": "真人口型",
"zh-TW": "真人口型"
},
"summary": {
"en": "In video calls, her mouth is drawn again on this computer for each thing Ta says, so that her lips match the words and the voice. Downloads about 5 GB the first time you agree.",
"ja-JP": "ビデオ通話で、Ta が話すたびにこのコンピューターで口元を描き直し、言葉と声に口の動きを合わせます。初めて同意したときに約 5 GB をダウンロードします。",
"zh-CN": "视频通话时在这台电脑上按 Ta 说的每句话重画她的嘴,让嘴型和字、声音对上。第一次同意后下载约 5 GB。",
"zh-TW": "視訊通話時在這台電腦上按 Ta 說的每句話重畫她的嘴,讓嘴型和字、聲音對上。第一次同意後下載約 5 GB。"
},
"permissions": {
"host": {
"*": "settings.manage",
"stop": "models.use",
"take": "models.use",
"tell": "models.use",
"start": "models.use",
"state": "models.use"
}
}
}README
Written by the package's publisher, shown as published in version 4.35.0 (README.md). PiG does not review it.
@celljs/ta-lips
视频通话时在这台电脑上为 Ta 说的每句话重画人物的下半张脸(MuseTalk 1.5),让嘴型和字幕、声音对上。设计见 docs/design/ta-call.md 12。
- 第一次视频通话时问一次是否下载(约 5 GB),也可以在设置里下载或移除;不同意就照常播放片段。
- 服务端(host):用 uv 在
~/.ta/tools/lips建一个独立的 Python,下载 MuseTalk、模型,并为每段片段预先算好人脸潜变量和遮罩(python/lips.py setup);通话开始时启动lips.py serve,一分钟没人用就停。 - 页面:通过
registerCallMouth接收 Ta 声音的 PCM 和每个时刻要显示的片段帧,取回画好的下半脸(带透明边的 WebP),在那一刻贴到片段上。 - 字幕、声音、片段、口型共用同一条时间线(声音实际播放的时刻);朗读会先等约 1.2 秒,让第一批口型来得及画好。
- 只在页面能直连这台电脑时启用(
files.byUrl),不经中继传画面。