feat(gpu): #1978 AI数字人口型同步接入MuseTalk GPU Worker(业务侧集成) #1991
Reference in New Issue
Block a user
Delete Branch "feat/gpu-lipsync-integration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
PR #1979 已合入 GPU Worker 基础设施层(4个接口+Worker脚本),PR #1990 已做超时/心跳/重试收敛。本 PR 把 GpuLipsyncService 真正接到 AI 数字人 lipsync 业务主流程里,对前端/用户透明。
逻辑
在
LipsyncService._submit_audio_direct签名提交 MediaKit 之前判断:USE_GPU_LIPSYNCenv,默认false(production默认false,待staging稳定后再开);staging默认true方便联调gpu_workers.last_heartbeat_at在GPU_WORKER_STALE_SECONDS(默认300s)内视为在线GPU_LIPSYNC_WAIT_TIMEOUT(默认1200s),超过自动回退MediaKitGPU_LIPSYNC_POLL_INTERVAL(默认5s)GpuLipsyncService新增
has_available_worker():5分钟内有心跳的Worker存在wait_for_result(task_id, timeout, poll_interval):同步轮询DB等终态,期间顺手回收超时任务;超时返回None配置
staging默认开USE_GPU_LIPSYNC=true;production默认false(等staging跑稳手动开)。
测试
联调说明
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #1991 已关闭或合并,对应的预览环境已被清理。