For the complete documentation index, see llms.txt. This page is also available as Markdown.

实时口型同步

将实时面部动画集成到你的 React 应用中。

支持的格式

ARKit(61 个元素)

苹果的 ARKit blendshape 格式,包含 52 个面部 blendshapes + 9 个旋转值:

  • 52 个标准面部 blendshape(眼睛、眉毛、下颌、嘴巴、脸颊、鼻子)

  • 3 个头部旋转值(俯仰、偏航、翻滚)

  • 6 个眼部旋转值(左/右眼注视)

MetaHuman(251 个元素)

Unreal Engine 的 MetaHuman 格式,包含 251 个 CTRL_expressions_* blendshapes:

  • 全面的面部控制(眉毛、眼睛、脸颊、鼻子、嘴巴、下颌)

  • 高度精细的嘴型,用于精准口型同步

  • 高保真角色动画的行业标准

配置选项

ConvaiConfig(useConvaiClient)

interface ConvaiConfig {
  // ... 其他选项
  
  /**
   * 启用 lipsync/面部动画 blendshape(默认:false)。
   * 启用后,以 60fps 流式传输实时 blendshape 数据。
   */
  enableLipsync?: boolean;
  
  /**
   * 从服务器接收的 blendshape 格式(默认:'mha')。
   * 'arkit' - 61 个元素(52 个 blendshape + 9 个旋转值)
   * 'mha' - 251 个元素(MetaHuman 格式)
   */
  blendshapeFormat?: 'arkit' | 'mha';
}

包含所有选项的示例

访问 Blendshape 队列

blendshape 队列可在客户端实例上使用:

最后更新于

这有帮助吗?