π¦ ClawHub
Aliyun Videoretalk
by @cinience
Use when replacing lip sync in existing videos with Alibaba Cloud Model Studio VideoRetalk (`videoretalk`). Use when creating dubbed videos, replacing narrat...
TERMINAL
clawhub install aliyun-videoretalkπ About This Skill
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
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:
videoretalkPrerequisites
DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials.Normalized interface (video.retalk)
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 200Response
task_id (string)task_status (string)video_url (string, when finished)usage (object, optional)Endpoint and execution model
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.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
ref_image_url to anchor the intended target.Output location
output/aliyun-videoretalk/request.jsonOUTPUT_DIR.References
references/sources.mdπ‘ Examples
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
βοΈ Configuration
DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials.π Constraints
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.