Aliyun Videoretalk
简介
Aliyun Videoretalk
原始描述
Use when replacing lip sync in existing videos with Alibaba Cloud Model Studio VideoRetalk (`videoretalk`). Use when creating dubbed videos, replacing narrat...
通过你的 Agent 添加
安装目录:aliyun-videoretalk/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: aliyun-videoretalk
description: Use when replacing lip sync in existing videos with Alibaba Cloud Model Studio VideoRetalk (videoretalk). Use when creating dubbed videos, replacing narration, or synchronizing a talking-head video to a new speech track.
version: 1.0.0
Category: provider
Model Studio VideoRetalk
Validation
mkdir -p output/aliyun-videoretalk
python -m py_compile skills/ai/video/aliyun-videoretalk/scripts/prepare_retalk_request.py && echo "py_compile_ok" > output/aliyun-videoretalk/validate.txt
Pass criteria: command exits 0 and output/aliyun-videoretalk/validate.txt is generated.
Output And Evidence
- Save normalized request payloads, target face selection settings, and task polling snapshots under
output/aliyun-videoretalk/.
- Record the exact video/audio input URLs and whether
video_extension was enabled.
output/aliyun-videoretalk/.video_extension was enabled.Use VideoRetalk when the input is already a person video and the job is to replace lip sync with a new speech track.
Critical model names
Use this exact model string:
videoretalk
Prerequisites
- This model currently only supports China mainland (Beijing).
- API is HTTP async only; there is no online console experience.
- Set
DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials.
Normalized interface (video.retalk)
Request
model (string, optional): default videoretalk
video_url (string, required)
audio_url (string, required)
ref_image_url (string, optional): target face when input video contains multiple faces
video_extension (bool, optional): extend video to match longer audio
query_face_threshold (int, optional): 120 to 200
Response
DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials.Request
model (string, optional): default videoretalkvideo_url (string, required)audio_url (string, required)ref_image_url (string, optional): target face when input video contains multiple facesvideo_extension (bool, optional): extend video to match longer audioquery_face_threshold (int, optional): 120 to 200task_id(string)task_status(string)video_url(string, when finished)usage(object, optional)
Endpoint and execution model
- Submit task:
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/image2video/video-synthesis/
- Poll task:
GET https://dashscope.aliyuncs.com/api/v1/tasks/{task_id}
- HTTP calls are async only and must set header
X-DashScope-Async: enable.
Quick start
python skills/ai/video/aliyun-videoretalk/scripts/prepare_retalk_request.py \
--video-url "https://example.com/talking-head.mp4" \
--audio-url "https://example.com/new-voice.wav" \
--video-extension
Operational guidance
- Keep input videos front-facing and close enough for stable face tracking.
- If the video contains multiple faces, provide
ref_image_url to anchor the intended target.
- If the new audio is longer than the input video, decide explicitly whether to extend the picture track or truncate the audio.
- URLs must be public HTTP/HTTPS links; local file paths are not accepted by the API.
Output location
- Default output:
output/aliyun-videoretalk/request.json
- Override base dir with
OUTPUT_DIR.
References
references/sources.md
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/image2video/video-synthesis/GET https://dashscope.aliyuncs.com/api/v1/tasks/{task_id}X-DashScope-Async: enable.python skills/ai/video/aliyun-videoretalk/scripts/prepare_retalk_request.py \
--video-url "https://example.com/talking-head.mp4" \
--audio-url "https://example.com/new-voice.wav" \
--video-extension
Operational guidance
- Keep input videos front-facing and close enough for stable face tracking.
- If the video contains multiple faces, provide
ref_image_url to anchor the intended target.
- If the new audio is longer than the input video, decide explicitly whether to extend the picture track or truncate the audio.
- URLs must be public HTTP/HTTPS links; local file paths are not accepted by the API.
Output location
- Default output:
output/aliyun-videoretalk/request.json
- Override base dir with
OUTPUT_DIR.
References
references/sources.md
ref_image_url to anchor the intended target.- Default output:
output/aliyun-videoretalk/request.json - Override base dir with
OUTPUT_DIR.
References
references/sources.md
references/sources.md正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。