digital-human
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBefore using this skill, read the required continuation in full. It is part of this skill and contains mandatory workflow, tool-contract, and safety instructions; do not act from this entry file alone.
在使用此 skill 前,请完整阅读必需的后续内容。它是此 skill 的一部分,包含强制性的工作流、工具契约和安全说明;不要仅依据此入口文件采取行动。
Digital Human
数字人
If , , or are not loaded yet, load them with before calling them, so you use their real parameters instead of guessing.
manage_custom_voicemanage_avatarsubmit_avatar_videoToolSearchCreate a reusable presenter identity or generate a lip-synced presenter video
without exposing the underlying provider. Treat avatar selection, speech, script,
format, consent, generation, and verification as one stateful conversation.
如果尚未加载 、 或 ,请先使用 加载它们,以便使用其真实参数而不是凭空猜测。
manage_custom_voicemanage_avatarsubmit_avatar_videoToolSearch创建可复用的主播身份,或生成口型同步的主播视频,且不暴露底层提供商。将 avatar 选择、语音、脚本、格式、授权、生成和验证视为同一段有状态的对话。
When to Use
适用场景
Use this skill when the user wants to:
- Make an official or saved AI avatar, talking avatar, or virtual presenter speak.
- Turn a consented portrait into a reusable digital-human identity.
- Use a representative still from an imported video as a photo avatar.
- Create a synthetic AI presenter from a description, when live capabilities allow it.
- Draft or revise the narration for a digital-human video.
- Regenerate, reorder, remove, retry, or accept segments from an avatar-video batch.
Treat AI avatar as the broad default English concept. Digital twin means a
reusable likeness of a specific real person; photo avatar or talking photo
means a still-image source; AI presenter, virtual presenter, and virtual
spokesperson describe the presenter's role. Digital human is valid but is often
used for broader enterprise or interactive experiences.
Route adjacent requests elsewhere:
- Speech, voice audition, or voice cloning without avatar video: use the Voice Skill.
- Ordinary footage cleanup or presenter editing: use the Talking Head Guide.
- Generic image-to-video or video generation without a speaking avatar: use the Video Generation Skill.
- Translation or dubbing of an existing video: use the dedicated translation or dubbing workflow when available.
当用户希望执行以下操作时,使用此 skill:
- 让官方或已保存的 AI avatar、talking avatar 或 virtual presenter 说话。
- 将获得授权的人像照片转换为可复用的 digital-human 身份。
- 使用从导入视频中选取的代表性静态帧作为 photo avatar。
- 在实时能力支持时,根据描述创建 synthetic AI presenter。
- 为数字人视频起草或修改旁白。
- 对 avatar-video 批次中的片段重新生成、重排、移除、重试或接受。
将 AI avatar 视为默认的广义英文概念。Digital twin 指某个特定真人的可复用外貌;photo avatar 或 talking photo 指以静态图像为来源;AI presenter、virtual presenter 和 virtual spokesperson 描述主播的角色。Digital human 同样有效,但常用于更广泛的企业级或交互式体验。
将相邻需求分流至其他工作流:
- 不涉及 avatar 视频的语音、声音试听或声音克隆:使用 Voice Skill。
- 普通素材清理或主播编辑:使用 Talking Head Guide。
- 不涉及说话 avatar 的通用图像转视频或视频生成:使用 Video Generation Skill。
- 现有视频的翻译或配音:在相关工作流可用时,使用专用的翻译或配音工作流。
Required Inputs
必需输入
Resolve these slots before submission, but do not ask for them in a fixed order:
- Target project — use the active project when it is unambiguous.
- Avatar identity and ready revision — an official avatar, a saved avatar, or a newly created photo or synthetic avatar.
- Speech source — one exact available voice, one cloned voice, or one imported audio asset. A text-driven source also requires the final script.
- Final script — preserve the user's wording and punctuation. Show any AI-written draft in full and let the user edit or approve it before generation.
- Aspect ratio — ,
auto,1:1,4:5,5:4, or9:16. Explicit user choice wins; otherwise omit it so the backend uses16:9and preserves the selected avatar's original framing. Do not substitute the current project ratio.auto - Resolution — by default; use
1080pwhen requested or when live capabilities require it, and explain any fallback.720p - Optional controls — motion guidance only when the live capability response
says it is supported. For an official catalog avatar, use its returned
value: preserve the original scene when true and request a transparent background when false. For a saved/custom avatar, preserve its original background by default. Request a transparent background only when the user explicitly asks to remove the background or use transparency. Do not ask the user to choose a background mode; briefly state the resolved default before submission. An explicit user request to preserve or remove the background always wins.
hasBackground
For avatar creation also resolve:
- A non-empty name. Keep numeric validation limits out of the question label; only explain a limit if the submitted name actually fails validation.
- One final avatar-creation source: an imported JPEG/PNG portrait, a representative JPEG/PNG still prepared from an imported video, or a prompt for a synthetic identity when supported.
- Explicit consent when a real person's likeness is involved.
Do not pass a video directly to photo-avatar creation unless the live capability
contract explicitly supports it. For an imported video, use the host's prepared
representative still or help select a clear, unobstructed, front-facing frame, then
use that image asset as the source.
When a user attaches or references a video containing a person and says "this
avatar", "this person", "use her/him", , , , , or an
equivalent phrase, resolve the person in that exact attachment as the intended
likeness source. Do not treat the attachment as the requested speech source merely
because it has audio or a transcript. If the user also supplies a new topic or an
approved script, that new topic or script wins; do not read or reuse the video's
spoken content unless the user explicitly asks for it.
这个形象这个人用她用他The attached video is a prospective avatar source, not a ready . Enter
the video-to-avatar creation flow: prepare a clean representative still, obtain the
required likeness consent, create the identity, and then reuse that identity for the
requested generation. Do not show official or saved avatar choices while this
prospective source remains valid. Offer other identities only when the user declines
to use the person in the video or no eligible face frame can be prepared.
identityIdIf "this" could reasonably mean the person's likeness, the video's existing pixels,
or its spoken content, ask exactly one targeted clarification before choosing a
workflow: "Do you want to use the person in this video as the avatar and have them
speak your new script?" Do not replace this with a generic "What do you want to do
with this video?" question.
When the user is about to upload or pick a video for avatar creation, tell them up
front that the chosen frame must show the face clearly with nothing covering it — no
burned-in subtitles, captions, watermarks, stickers, or hands over the face — and
prefer a frame with a neutral, front-facing pose. Never upload an inspection contact
sheet or any preview that carries an overlaid time label as the avatar source; use a
clean frame with no added markings.
A video source also carries the person's voice. After the avatar is created from a
video, offer to clone that voice from the same video so the avatar speaks with it:
- Run the Voice Skill's cloning flow (with the video's asset and explicit voice-cloning consent — likeness consent alone does not cover the voice).
manage_custom_voice action=clone - When the cloned voice is ready, call
so it becomes this avatar's saved default voice.
manage_avatar action=set-default-voice identityId=<avatar> voiceRef=<cloned voiceRef> - Later generations with this avatar should use the returned by default, while still letting the user pick another voice.
defaultVoiceRef
This is an offer, not an automatic step: skip it when the user declines or the video
has unusable audio (music, multiple speakers, heavy noise).
提交前应解析以下信息槽位,但不要按固定顺序询问用户:
- 目标项目——当活动项目唯一明确时,直接使用该项目。
- Avatar 身份和就绪版本——官方 avatar、已保存的 avatar,或新建的照片或 synthetic avatar。
- 语音来源——一个确切可用的声音、一个克隆声音,或一个导入的音频资产。由文本驱动的来源还需要最终脚本。
- 最终脚本——保留用户的措辞和标点。完整展示 AI 撰写的草稿,并在生成前让用户编辑或批准。
- 宽高比——、
auto、1:1、4:5、5:4或9:16。用户的明确选择优先;否则省略此参数,让后端使用16:9并保留所选 avatar 的原始构图。不要替换为当前项目的宽高比。auto - 分辨率——默认使用 ;用户提出要求或实时能力要求时使用
1080p,并说明任何降级情况。720p - 可选控制项——仅当实时能力响应表明支持时才使用动作指导。对于官方目录 avatar,使用其返回的 值:为 true 时保留原始场景,为 false 时请求透明背景。对于已保存或自定义的 avatar,默认保留原始背景。仅当用户明确要求移除背景或使用透明背景时,才请求透明背景。不要让用户选择背景模式;提交前简要说明已解析的默认值。用户明确要求保留或移除背景时,始终以用户要求为准。
hasBackground
创建 avatar 时还需确定:
- 一个非空名称。数字验证限制不要出现在问题标签中;仅当提交的名称实际未通过验证时才解释该限制。
- 一个最终的 avatar 创建来源:导入的 JPEG/PNG 人像照片、从导入视频准备的代表性 JPEG/PNG 静态帧,或在功能支持时用于创建 synthetic identity 的提示词。
- 当涉及真人外貌时,取得明确授权。
除非实时能力契约明确支持,否则不要直接将视频传给 photo-avatar 创建流程。对于导入的视频,应使用宿主准备的代表性静态帧,或帮助用户选择清晰、无遮挡且正面朝向的帧,然后将相应图像资产用作来源。
当用户附加或引用包含人物的视频,并说 “this avatar”、“this person”、“use her/him”、、、、 或含义相同的表达时,应将该附件中的具体人物解析为预期的外貌来源。不要仅因为附件包含音频或转录文本,就将其视为所请求的语音来源。如果用户还提供了新主题或已批准的脚本,则以该新主题或脚本为准;除非用户明确要求,否则不要读取或复用视频中的口头内容。
这个形象这个人用她用他附加的视频是潜在的 avatar 来源,而不是现成的 。进入视频转 avatar 的创建流程:准备干净的代表性静态帧、取得所需的外貌授权、创建 identity,然后在所请求的生成中复用该 identity。在该潜在来源仍然有效时,不要显示官方或已保存的 avatar 选项。只有当用户拒绝使用视频中的人物,或无法准备出合格的人脸帧时,才提供其他身份。
identityId如果 “this” 可能指人物的外貌、视频现有的像素画面或口头内容,请在选择工作流前恰好提出一个针对性的澄清问题:“是否希望将这个视频中的人物用作 avatar,并让其朗读你的新脚本?”不要将其替换为泛泛的“你想如何处理这个视频?”这一问题。
当用户即将上传或选择用于创建 avatar 的视频时,应提前告知:所选帧必须清楚展示面部,且面部不能有任何遮挡——不得有烧录字幕、说明文字、水印、贴纸或遮住脸部的双手;优先选择表情自然、正面朝向的帧。绝不要将检查用拼图或带有叠加时间标记的预览图用作 avatar 来源;应使用没有任何附加标记的干净帧。
视频来源还包含人物的声音。创建视频来源的 avatar 后,主动提议从同一视频克隆该声音,使 avatar 使用该声音说话:
- 运行 Voice Skill 的克隆流程(),使用该视频的资产并取得明确的声音克隆授权——仅授权使用外貌并不涵盖声音。
manage_custom_voice action=clone - 克隆声音就绪后,调用 ,将其设为该 avatar 已保存的默认声音。
manage_avatar action=set-default-voice identityId=<avatar> voiceRef=<cloned voiceRef> - 后续使用该 avatar 生成时,默认使用返回的 ,同时仍允许用户选择其他声音。
defaultVoiceRef
这只是主动提议,并非自动执行步骤:当用户拒绝,或视频音频不可用时(音乐、多人说话、严重噪声),应跳过此步骤。
Workflow
工作流
This is an intent-driven constraint resolver, not a linear wizard. Do not walk the
user through every section or ask for fields in a preset order.
On every turn:
- Extract all facts already supplied by the user, attachments, active project, selected media, saved avatar state, and prior answers in this request.
- Resolve deictic phrases such as "this", ,
这个, and这个形象against the attached or selected media and the user's action words before inferring a generic media workflow.这个人 - Infer the user's immediate requested action: explore, choose, create, revise, generate, inspect progress, retry, reorder, remove, accept, place, or export.
- Compute only the blockers for that action. Defaults and live saved bindings count as resolved unless they conflict with an explicit request.
- If nothing blocks the action, execute it immediately.
- Otherwise ask about the single most important missing or ambiguous constraint, preferably with structured choices, then recompute from the new state.
For example, a user who names a ready avatar, supplies approved text, and accepts its
saved voice should not be asked to choose them again. A user inspecting a running
batch does not need to resolve a new script or aspect ratio. Consent is requested only
for the creation or cloning action that needs it.
这是一个由意图驱动、用于解析约束的过程,而非线性向导。不要让用户逐节完成所有内容,也不要按预设顺序询问每个字段。
在每一轮中:
- 提取用户、附件、活动项目、所选媒体、已保存的 avatar 状态以及本次请求中的先前回答已经提供的所有事实。
- 在推断通用媒体工作流之前,根据附件或所选媒体以及用户的动作词,解析 “this”、、
这个、这个形象等指代表达。这个人 - 推断用户当前请求的操作:探索、选择、创建、修改、生成、查看进度、重试、重排、移除、接受、放置或导出。
- 仅计算该操作的阻塞条件。除非与明确请求冲突,否则默认值和实时保存的绑定关系均视为已解析。
- 如果没有任何阻塞条件,立即执行。
- 否则,询问单个最重要且缺失或存在歧义的约束条件,最好提供结构化选项,然后根据新状态重新计算。
例如,用户已经指定了可用的 avatar、提供了已批准的文本,并接受其已保存的声音时,不应再次要求用户选择这些项目。查看正在运行的批次的用户不需要解析新的脚本或宽高比。仅在创建或克隆操作需要授权时请求用户同意。
Load live capabilities and state when relevant
在相关情况下加载实时能力和状态
Use to load and if they are not
already visible. Call for live capabilities before
offering creation or advanced options.
ToolSearchmanage_avatarsubmit_avatar_videomanage_avatarIf the user has neither selected an exact identity nor supplied a prospective
likeness source, list the current official and saved identities before recommending
one. Do not infer availability from chat history, examples, or provider knowledge.
For official avatars, use the live catalog's as factual selection filters and
its as recommendation guidance. Match those fields against the user's
requested presenter and use case, and never infer a missing age, gender, ethnicity,
role, setting, or capability from the preview's appearance.
For the empty saved-avatar recommendation state, call the official catalog with
; do not page through the catalog or turn a full catalog page into one
recommendation form.
tagsdescriptionlimit: 5An avatar attached from ChatCut's Digital Humans library or native visual picker is
already an exact selection. Reuse its attached ChatCut as
across later confirmation and retry turns. An official attached identity is directly
usable by ; it does not need to be imported or rediscovered in
the first catalog page. Before resolving speech for an attached identity, call
with and that exact ID unless a live result in the
current turn already supplies its . Never reject or replace an
attached avatar just because it is absent from the five-item recommendation page.
avatarIdidentityIdsubmit_avatar_videomanage_avataraction: getdefaultVoiceRefOnly use identities and revisions reported as ready. Pending, failed, deleting,
deleted, or orphaned identities are not valid generation inputs.
If the digital-human tools are unavailable, explain that this generation capability
is not connected. Do not silently substitute generic video generation or call the
backend HTTP routes directly.
如果 和 尚不可见,请使用 加载。在提供创建或高级选项之前,调用 获取实时能力。
manage_avatarsubmit_avatar_videoToolSearchmanage_avatar如果用户既未选择确切身份,也未提供潜在的外貌来源,请先列出当前官方和已保存的身份,再进行推荐。不得根据聊天历史、示例或提供商知识推断可用性。
对于官方 avatar,应使用实时目录中的 作为事实性筛选条件,并使用其 作为推荐指导。将这些字段与用户所请求的主播及使用场景进行匹配;绝不根据预览外观推断缺失的年龄、性别、族裔、角色、场景或能力。
当已保存 avatar 的推荐状态为空时,使用 调用官方目录;不要翻页浏览目录,也不要将整页目录变成一个推荐表单。
tagsdescriptionlimit: 5从 ChatCut 的 Digital Humans 库或原生可视化选择器附加的 avatar 已经是确切选择。在后续确认和重试轮次中,将附加的 ChatCut 作为 重复使用。附加的官方身份可直接供 使用;无需导入,也无需在首屏目录中重新查找。在为附加身份解析语音之前,除非当前轮次的实时结果已提供 ,否则应使用该确切 ID 调用 并设置 。绝不能仅因某个附加 avatar 未出现在五项推荐页中,就拒绝或替换它。
avatarIdidentityIdsubmit_avatar_videodefaultVoiceRefmanage_avataraction: get仅使用报告为就绪的身份和版本。等待中、失败、删除中、已删除或孤立的身份均不是有效的生成输入。
如果数字人工具不可用,请说明该生成能力尚未连接。不要悄悄改用通用视频生成,也不要直接调用后端 HTTP 路由。
Resolve the avatar when it is missing or invalid
当 avatar 缺失或无效时进行解析
Respect an explicit user choice. Otherwise:
- A person-containing video explicitly or provisionally resolved as the likeness source: continue the video-to-avatar creation flow. Do not enter the generic avatar picker and do not ask the user to choose among saved or official identities.
- No ready saved avatar: show at most five suitable official avatars and include the reserved create card in the same choice surface. This is a strict empty-state contract: never render a sixth official recommendation, and never omit the creation option merely because official avatars are available.
- Ready saved avatars exist: show them first (up to five total cards), then the reserved create card.
- Exactly one ready saved avatar: offer it first and ask whether to use it.
- Multiple ready saved avatars: prefer higher live usage count; when counts tie, prefer the newest creation. If usage metadata is absent, rank by newest creation only; never invent a frequency.
In embedded ChatCut, avatar identity selection is media-preview-only and is a strict exception to the generic
single-branch rule. Always use visual cards through the Widget Forms
Skill, including when exactly one ready saved avatar exists. Never ask a text-only
category question such as "use the saved avatar" versus "browse official avatars",
and never use , , or label-only identity cards for avatar
selection. For an avatar card in ChatCut's native widget — official or the user's own
saved avatar — write only its exact as ; the host resolves the
current name, preview video or fallback image, aspect ratio, and submitted value from the live avatar
identity even when the tool payload does not expose a preview URL. Never copy ,
, , or onto an option. If the host cannot
resolve preview media, omit that identity rather than falling back to text. Prefer
the live preview video when available and use the preview image only as its poster
or fallback. When
the user has ready saved avatars, place their cards before official recommendations.
Ask one most important missing question at a time and do not repeat answered questions.
<choices/><choices/><form-single>identityIdavatar-idvaluenamemediaaspect-ratioavatar-idThe raw tags and visual-card requirements below describe embedded ChatCut only. In Antigravity, the host adapter takes priority: use concise text choices with stable values mapped internally to returned names and descriptions, and direct the user to ChatCut's Digital Humans library for previews. Never emit raw ChatCut tags or promise chat avatar video. Preserve the separate value; it returns to this workflow for a conversation attachment plus , rather than automatically opening a native dialog. This adapter changes presentation only; identity readiness, required inputs and consent checks remain mandatory.
For a saved identity whose row has no preview URLs, call for that exact candidate before rendering it; use the selected ready
revision's returned preview media and do not invent or copy media from another avatar.
widget-formsidentityIdcreate_avatarasset-importlistmanage_avatar action=getOne reserved label-only option value opens a native editor surface instead of
submitting an answer. Write it with no :
media- — opens the native creation dialog where the user uploads a photo and creates a personal avatar. Keep its card label a short "create your own avatar" phrase (e.g. 创建专属数字人); do not mention uploading a photo — the dialog explains that itself.
create_avatar
Clicking that card does not produce a form answer. When the user finishes in the
native dialog, their chosen or newly created avatar is sent back automatically as
this question's answer with the avatar attached; treat that reply as the avatar
selection and do not re-ask.
The selection shape is therefore one containing up to five avatar
preview cards (saved first, then official) followed by the creation card. Localize
the visible question and card label to the conversation language:
<form-visual>text
<widget>
<form-visual id="avatar" question="Please choose an avatar" required="true">
<visual-option avatar-id="<saved-or-official-identity-id>"/>
<visual-option value="create_avatar" name="Create your own avatar"/>
</form-visual>
</widget>Creating an identity is separate from generating a video:
- Resolve the source or prompt and name.
- Obtain required consent.
- Create the identity through .
manage_avatar - Wait until it is ready or terminal. Where offers
track_progress, calltarget=avatarwith theaction=waitand do what its result says; otherwise re-read it withidentityIdsin a later turn.manage_avatar action=get refresh=true - Save it under My avatars. Do not auto-generate a video merely because avatar creation succeeded.
When asking for a portrait in an embedded ChatCut Widget, always mark the upload as an avatar source so
the host uses the same validation, JPEG normalization, private transport storage, and
upload-readiness behavior as the native Digital Humans dialog:
text
<widget>
<form-files id="avatar_source" label="Please upload a portrait photo"
accept="image/jpeg,image/png" purpose="avatar-source"
multiple="false" required="true"/>
<form-text id="avatar_name" label="Name this avatar" required="true"/>
</widget>Do not use an unmarked generic upload for avatar creation.
Published plugin forms do not provide this native upload control. Ask the user to
attach the portrait through their host, then use the Asset Import Skill and pass the
returned ChatCut image asset id to .
<form-files>manage_avatar尊重用户的明确选择。否则:
- 明确或暂定将包含人物的视频解析为外貌来源:继续执行视频转 avatar 的创建流程。不要进入通用 avatar 选择器,也不要询问用户选择已保存或官方身份。
- 没有就绪的已保存 avatar:最多展示五个合适的官方 avatar,并在同一选择界面中加入保留的创建卡片。这是严格的空状态契约:绝不能展示第六个官方推荐,也绝不能因为存在官方 avatar 就省略创建选项。
- 存在就绪的已保存 avatar:先展示这些 avatar(总计最多五张卡片),然后展示创建卡片。
- 恰好有一个就绪的已保存 avatar:首先提供该 avatar,并询问是否使用它。
- 存在多个就绪的已保存 avatar:优先选择实时使用次数较高的;次数相同时,优先选择创建时间最新的。如果缺少使用次数元数据,则仅按创建时间由新到旧排序;绝不虚构使用频率。
在嵌入式 ChatCut 中,avatar 身份选择仅用于媒体预览,是通用单分支 规则的严格例外。始终通过 Widget Forms Skill 使用可视化卡片,即使恰好只有一个就绪的已保存 avatar 也应如此。不要询问“使用已保存的 avatar”还是“浏览官方 avatar”这类纯文本分类问题,也不要使用 、 或仅含标签的身份卡片来选择 avatar。对于 ChatCut 原生组件中的 avatar 卡片——无论是官方 avatar 还是用户自己的已保存 avatar——只将其确切 写入 ;即使工具载荷未公开预览 URL,宿主也会从实时 avatar 身份中解析当前名称、预览视频或回退图像、宽高比和提交值。不要将 、、 或 复制到 选项上。如果宿主无法解析预览媒体,应省略该身份,而不是回退为文本。存在实时预览视频时应优先使用,预览图像只能作为封面或回退图像。当用户拥有就绪的已保存 avatar 时,应将其卡片放在官方推荐之前。每次只询问一个最重要的缺失问题,不要重复询问已经回答的问题。
<choices/><choices/><form-single>identityIdavatar-idvaluenamemediaaspect-ratioavatar-id以下原始标签和可视化卡片要求仅适用于嵌入式 ChatCut。在 Antigravity 中, 宿主适配器具有优先权:使用简洁的文本选项,并将稳定的 值在内部映射到返回的名称和描述,同时引导用户前往 ChatCut 的 Digital Humans 库查看预览。不要输出原始 ChatCut 标签,也不要承诺提供聊天内 avatar 视频。保留独立的 值;它会通过对话附件加 返回此工作流,而不是自动打开原生对话框。该适配器仅改变呈现方式;身份就绪状态、必需输入和授权检查仍然必须执行。
对于 行中没有预览 URL 的已保存身份,在渲染前对该确切候选项调用 。使用所选就绪版本返回的预览媒体,不要虚构或复制其他 avatar 的媒体。
widget-formsidentityIdcreate_avatarasset-importlistmanage_avatar action=get一个保留的仅标签选项值会打开原生编辑界面,而不是提交答案。写入时不要附带 :
media- ——打开原生创建对话框,用户可在其中上传照片并创建个人 avatar。卡片标签应保持为简短的“创建专属数字人”之类的短语;不要提及上传照片,对话框本身会进行说明。
create_avatar
点击该卡片不会产生表单答案。当用户在原生对话框中完成操作时,其选择或新建的 avatar 会自动作为本问题的答案回传,并附带 avatar;将该回复视为 avatar 选择,不要再次询问。
因此,选择结构为一个 ,其中最多包含五张 avatar 预览卡片(先显示已保存的 avatar,再显示官方 avatar),最后是创建卡片。将可见问题和卡片标签本地化为对话语言:
<form-visual>text
<widget>
<form-visual id="avatar" question="Please choose an avatar" required="true">
<visual-option avatar-id="<saved-or-official-identity-id>"/>
<visual-option value="create_avatar" name="Create your own avatar"/>
</form-visual>
</widget>创建身份与生成视频是两个独立过程:
- 解析来源或提示词以及名称。
- 取得所需授权。
- 通过 创建身份。
manage_avatar - 等待其进入就绪或终态。如果 支持
track_progress,则使用target=avatar调用identityIds,并按照其结果执行;否则在后续轮次中使用action=wait重新读取。manage_avatar action=get refresh=true - 将其保存在 My avatars 下。不要仅因 avatar 创建成功就自动生成视频。
在嵌入式 ChatCut Widget 中要求用户提供人像照片时,始终将上传项标记为 avatar 来源,使宿主采用与原生 Digital Humans 对话框相同的验证、JPEG 标准化、私密传输存储和上传就绪行为:
text
<widget>
<form-files id="avatar_source" label="Please upload a portrait photo"
accept="image/jpeg,image/png" purpose="avatar-source"
multiple="false" required="true"/>
<form-text id="avatar_name" label="Name this avatar" required="true"/>
</widget>不要将未标记的通用 上传控件用于创建 avatar。已发布的插件表单不提供此原生上传控件。请用户通过宿主附加人像照片,然后使用 Asset Import Skill,并将返回的 ChatCut 图像资产 ID 传给 。
<form-files>manage_avatar