> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ByteDance OmniHuman 2.0：ComfyUI 中的人像说话数字人

> 使用 ComfyUI 中的字节跳动 OmniHuman 2.0 合作伙伴节点，把一张人像和一段音频变成口型同步的说话或唱歌视频。

字节跳动 OmniHuman 2.0 可以让一张静态人像随着语音或歌曲动起来。节点返回与音频等长的视频，口型同步、眨眼和头部动作都由图像生成。

> [!TIP]
>
> 使用 API 节点需要保证你已经正常登录，并在受许可的网络环境下使用，请参考[API 节点总览](https://docs.comfy.org/zh/tutorials/partner-nodes/overview.md)部分文档来了解使用 API 节点的具体使用要求。

> [!TIP]
>
> > [tab] 本地用户
> >
> > 请确保你的 ComfyUI 已经更新。
> >
> > * [ComfyUI 下载](https://www.comfy.org/download)
> > * [ComfyUI 更新教程](https://docs.comfy.org/zh/installation/update_comfyui.md)
> >
> > 本指南里的工作流可以在[工作流模板](https://docs.comfy.org/zh/interface/features/template.md)中找到。如果找不到，可能是 ComfyUI 没有更新。
> >
> > 如果加载工作流时有节点缺失，可能原因有：
> >
> > 1. 你用的不是最新版（每夜版）。
> > 2. 启动时有些节点导入失败。
>
> > [tab] 云端用户
> >
> > * [Cloud](https://cloud.comfy.org) 会在 ComfyUI 稳定版本发布后更新。
> >
> > 所以，如果你发现本文档中有任何核心节点缺失，可能是因为新核心节点尚未在最新稳定版中发布。请等待下一个稳定版发布。

## OmniHuman 2.0：说话数字人

一张人像加上一段音频，就能变成这个人说话或唱歌的视频。视频片段会保留人像的构图，简短的提示词可以指定手势、情绪和相机。如果画面中有多个人，请指明说话的是谁，例如“只有右边的女士在说话”。包含两个声音的对话音轨会自动分配给画面中的两个人。

![字节跳动 OmniHuman 2.0：说话数字人工作流预览](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_bytedance_omnihuman_2_0-1.webp)

> [card] [下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_bytedance_omnihuman_2_0.json)
>
> 下载 JSON，或在模板库中搜索 "ByteDance OmniHuman 2.0: Talking Avatar"

模板的示例输出：一张人像在朗读一小段文字。

<video controls src="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_bytedance_omnihuman_2_0.mp4" />

**输入素材**

> [card] [curly\_hair\_portrait.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/curly_hair_portrait.png)
>
> 加载到 `LoadImage` 节点。一张正面人像

> [card] [window\_notes\_narration.mp3](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/window_notes_narration.mp3)
>
> 加载到 `LoadAudio` 节点。驱动口型的语音或歌曲

## 需要了解的事项

* **图像限制**：每边至少 300 px，宽高比在 1:2.5 到 2.5:1 之间。
* **音频限制**：4 到 300 秒。视频与音频等长，并向上取整到整秒。
* **种子**：只控制节点是否重新运行。结果是非确定性的，因此相同的种子不会得到相同的视频。
* **提示词指导**：提示词保持简短，不要写出要说的内容，音频本身已经承载了这些内容。画面中有多个人时，请指明说话的是谁。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.