aliyun-liveportrait
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCategory: provider
分类:provider
Model Studio LivePortrait
Model Studio LivePortrait
Validation
验证
bash
mkdir -p output/aliyun-liveportrait
python -m py_compile skills/ai/video/aliyun-liveportrait/scripts/prepare_liveportrait_request.py && echo "py_compile_ok" > output/aliyun-liveportrait/validate.txtPass criteria: command exits 0 and is generated.
output/aliyun-liveportrait/validate.txtbash
mkdir -p output/aliyun-liveportrait
python -m py_compile skills/ai/video/aliyun-liveportrait/scripts/prepare_liveportrait_request.py && echo "py_compile_ok" > output/aliyun-liveportrait/validate.txt通过标准:命令退出码为0,且成功生成文件。
output/aliyun-liveportrait/validate.txtOutput And Evidence
输出与证明材料
- Save normalized request payloads, template choice, and task polling snapshots under .
output/aliyun-liveportrait/ - Record the exact portrait/audio URLs and motion-strength related parameters.
Use LivePortrait when the job is lightweight portrait animation with speech audio, especially for longer clips or simpler presenter-style motion.
- 请将标准化请求负载、模板选择结果和任务轮询快照保存至目录下。
output/aliyun-liveportrait/ - 记录准确的肖像/音频URL以及动效强度相关参数。
当任务为带语音音频的轻量级肖像动画,尤其是生成长片段或更简单的主持人风格动效时,适合使用LivePortrait。
Critical model names
关键模型名称
Use these exact model strings:
liveportrait-detectliveportrait
Selection guidance:
- Run first to verify the portrait image.
liveportrait-detect - Use for the actual video generation task.
liveportrait
请使用以下准确的模型字符串:
liveportrait-detectliveportrait
选择指南:
- 首先运行来校验肖像图片。
liveportrait-detect - 使用执行实际的视频生成任务。
liveportrait
Prerequisites
前置条件
- China mainland (Beijing) only.
- Set in your environment, or add
DASHSCOPE_API_KEYtodashscope_api_key.~/.alibabacloud/credentials - Input image and audio must be public HTTP/HTTPS URLs.
- 仅支持中国大陆(北京)区域使用。
- 请在环境变量中设置,或将
DASHSCOPE_API_KEY添加至dashscope_api_key文件中。~/.alibabacloud/credentials - 输入的图片和音频必须是公开可访问的HTTP/HTTPS URL。
Normalized interface (video.liveportrait)
标准化接口(video.liveportrait)
Detect Request
检测请求
- (string, optional): default
modelliveportrait-detect - (string, required)
image_url
- (字符串,可选):默认值为
modelliveportrait-detect - (字符串,必填)
image_url
Generate Request
生成请求
- (string, optional): default
modelliveportrait - (string, required)
image_url - (string, required)
audio_url - (string, optional):
template_id,normal, orcalmactive - (number, optional):
eye_move_freqto01 - (int, optional):
video_fpsto1530 - (number, optional):
mouth_move_strengthto01.5 - (bool, optional)
paste_back - (number, optional):
head_move_strengthto01
- (字符串,可选):默认值为
modelliveportrait - (字符串,必填)
image_url - (字符串,必填)
audio_url - (字符串,可选):可选值为
template_id、normal或calmactive - (数值,可选):取值范围
eye_move_freq到01 - (整数,可选):取值范围
video_fps到1530 - (数值,可选):取值范围
mouth_move_strength到01.5 - (布尔值,可选)
paste_back - (数值,可选):取值范围
head_move_strength到01
Response
返回结果
- (string)
task_id - (string)
task_status - (string, when finished)
video_url
- (字符串)
task_id - (字符串)
task_status - (字符串,任务完成时返回)
video_url
Quick start
快速开始
bash
python skills/ai/video/aliyun-liveportrait/scripts/prepare_liveportrait_request.py \
--image-url "https://example.com/portrait.png" \
--audio-url "https://example.com/speech.mp3" \
--template-id calm \
--video-fps 24 \
--paste-backbash
python skills/ai/video/aliyun-liveportrait/scripts/prepare_liveportrait_request.py \
--image-url "https://example.com/portrait.png" \
--audio-url "https://example.com/speech.mp3" \
--template-id calm \
--video-fps 24 \
--paste-backOperational guidance
使用指南
- Use a clear, front-facing portrait with low occlusion.
- Keep the audio clean and voice-dominant.
- outputs only the generated face region; keep it
paste_back=falsefor standard talking-head output.true - LivePortrait is a better fit than EMO when you need longer, simpler presenter-style clips.
- 请使用清晰、低遮挡的正面肖像图片。
- 请使用干净、以人声为主的音频。
- 时仅输出生成的人脸区域;如需标准的说话人肖像输出,请将其设置为
paste_back=false。true - 当你需要生成长时长、更简单的主持人风格片段时,相比EMO,LivePortrait是更合适的选择。
Output location
输出路径
- Default output:
output/aliyun-liveportrait/request.json - Override base dir with .
OUTPUT_DIR
- 默认输出路径:
output/aliyun-liveportrait/request.json - 可通过环境变量覆盖基础目录。
OUTPUT_DIR
References
参考文档
references/sources.md
references/sources.md