> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/add-lip-sync/profiles-and-mappings.md). Agents can also search and read this documentation through its [MCP server](https://docs.convai.com/api-docs/~gitbook/mcp).

# 配置文件与映射

了解控制 Convai blendshape 数据如何传递到角色面部网格的 Profile 和 Map 资源，以及何时需要创建自定义资源。

口型同步系统使用两种 `ScriptableObject` 类型来描述混合形状数据如何从 Convai 流向角色的网格： **配置文件** 和 **映射**。大多数设置使用随附资源即可——只有当你的绑定使用非标准混合形状名称，或使用内置配置文件未涵盖的传输格式时，才需要创建自定义资源。

### 什么是配置文件？

配置文件 **配置文件** 定义传输格式——它会告知 SDK 预期从 Convai 数据流中接收哪些混合形状通道名称。配置文件的 ID（例如， `arkit`, `metahuman`, `cc4_extended`）就是你要填入 `ConvaiLipSyncComponent._lockedProfileId`.

**SDK 随附三种配置文件：**

| ID             | 显示名称      | 格式                           |
| -------------- | --------- | ---------------------------- |
| `arkit`        | ARKit     | 61 个标准 ARKit 通道              |
| `metahuman`    | MetaHuman | 251 个 MetaHuman CTRL 表情      |
| `cc4_extended` | CC4 扩展    | 170 个 Character Creator 4 通道 |

这三种随附配置文件已内置于 SDK 中——无需在 Project 窗口中查找对应的 `.asset` 文件，也无需导入任何内容。直接将 ID 输入 `_lockedProfileId`.

只有当角色使用 Convai 以自定义 ID 推送的专有混合形状格式时，才需要创建自定义配置文件。实际上，这种情况很少见——大多数流程都使用三种随附格式之一。

### 什么是映射？

映射 **映射** 会将源混合形状通道（来自配置文件）映射到角色 `SkinnedMeshRenderer`上的实际混合形状名称。它还允许你为每个通道应用乘数、偏移量和钳制值。

**SDK 随附四种映射：**

| 映射资源                                         | 映射关系                            |
| -------------------------------------------- | ------------------------------- |
| `ConvaiLipSyncDefaultMap_ARKit`              | ARKit → ARKit（直接传递）             |
| `ConvaiLipSyncDefaultMap_MetaHuman`          | MetaHuman → MetaHuman（直接传递）     |
| `ConvaiLipSyncDefaultMap_CC4Extended`        | CC4Extended → CC4Extended（直接传递） |
| `ConvaiLipSyncDefaultMap_ARKitToCC4Extended` | ARKit → CC4Extended（转换）         |

当 `ConvaiLipSyncComponent._mapping` 留空时，SDK 会根据锁定的配置文件 ID 自动选择匹配的直接传递映射。

`ConvaiLipSyncMapAsset.Mappings` 将其条目公开为 `IReadOnlyList<BlendshapeMappingEntry>` ——在运行时读取映射的代码无法添加、删除或重新排序条目。请在编辑器中创建映射；请参阅 [创建自定义唇形同步映射](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/add-lip-sync/create-a-custom-blendshape-map.md).

如果角色的混合形状名称与预期名称不同，或者需要调整权重乘数以匹配绑定的校准，请创建自定义映射。

### 何时创建自定义资源

| 情况                                   | 创建                               |
| ------------------------------------ | -------------------------------- |
| 绑定使用的名称与 ARKit/MetaHuman/CC4 的名称完全一致 | 无需创建——使用随附的映射（将  `_mapping`  留空） |
| 绑定为标准混合形状使用了不同的名称                    | 自定义 **映射** 即可                    |
| 接收的是 ARKit 数据流，但绑定使用的是 CC4 名称        | 使用随附的  `ARKitToCC4Extended`  映射  |
| 角色使用完全自定义的混合形状集                      | 自定义 **配置文件**  + 自定义 **映射**       |

### 后续步骤

{% content-ref url="/pages/23f7f0807dc9d3c6490dd0b0704dfd8092cd998e" %}
[创建唇形同步配置文件](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/add-lip-sync/create-a-lip-sync-profile.md)
{% endcontent-ref %}

{% content-ref url="/pages/0808b43e9ba988a5156bb5fb55261f1f67638b57" %}
[创建自定义口型同步映射](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/add-lip-sync/create-a-custom-blendshape-map.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started/add-lip-sync/profiles-and-mappings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
