口型同步与 Blendshape
使用与机器人音频一并流式传输的 blendshape 数据,为 3D 角色驱动实时面部动画。
工作原理
启用唇形同步
const client = useConvaiClient({
apiKey: '...',
characterId: '...',
enableLipsync: true,
blendshapeConfig: {
format: 'arkit', // 或 'mha'(MetaHuman 251,默认)
},
});在渲染循环中读取帧
getFrameAtTime(elapsedSeconds)
getFrameWithAlpha(index)
将 blendshape 应用到 Three.js 网格
自定义映射器
ARKit 名称映射器
直接名称映射的角色(无需映射器)
连接后设置映射器
BlendshapeQueue API
状态检查
帧访问
消费
回合统计
中断
调试
让唇形同步更自然
让流淡入淡出
让程序系统拥有自己的通道
语音结束检测
按通道增益
嘴部对称性
在动画混合器之后应用
缓冲调优
最后更新于
这有帮助吗?