fix: AI数字人对口型接口对齐后端新参数 video_url (#1809 补充) #1816

Merged
auto-approve-bot merged 1 commits from fix/ai-avatar-lipsync-api-align into develop 2026-09-09 10:35:50 +08:00
Owner

背景

后端已完成 /api/v1/lipsync/jobs 接口调整(PR #1814,staging 已部署),前端参数对齐。

后端新参数

{
  "video_url": "https://...",  // 用 video_asset_id 调素材接口拿 file_url
  "voice_id": "longxiaochun_v3", // 预设音色 ID 或克隆音色 profile UUID
  "script_text": "脚本文本",
  "enable_video_loop": false,
  "project_id": ""
}

前端改动

  • createLipsyncJob 参数 video_asset_idvideo_url
  • 新增 getAssetById:先按素材 id 查 /assets/{id}file_url 再传给后端
  • voice_id + script_text 直接传后端(后端内部调 TTS)
  • 删除前端 video_asset_id 传参,全工程残留已清零
  • file_url 为空时弹明确 toast,避免静默失败

不动

  • UI 布局
  • 其他功能(渲染提交、轮询、B-roll 等)

验证

  • tsc 0 / ESLint 0 / Prettier
  • 后端 schema 字段完全对应:apps/api/app/schemas/lipsync.py 第 42 行 video_url: str
## 背景 后端已完成 /api/v1/lipsync/jobs 接口调整(PR #1814,staging 已部署),前端参数对齐。 ## 后端新参数 ```json { "video_url": "https://...", // 用 video_asset_id 调素材接口拿 file_url "voice_id": "longxiaochun_v3", // 预设音色 ID 或克隆音色 profile UUID "script_text": "脚本文本", "enable_video_loop": false, "project_id": "" } ``` ## 前端改动 - `createLipsyncJob` 参数 `video_asset_id` → `video_url` - 新增 `getAssetById`:先按素材 id 查 `/assets/{id}` 拿 `file_url` 再传给后端 - `voice_id` + `script_text` 直接传后端(后端内部调 TTS) - 删除前端 `video_asset_id` 传参,全工程残留已清零 - `file_url` 为空时弹明确 toast,避免静默失败 ## 不动 - UI 布局 - 其他功能(渲染提交、轮询、B-roll 等) ## 验证 - tsc 0 / ESLint 0 / Prettier - 后端 schema 字段完全对应:`apps/api/app/schemas/lipsync.py` 第 42 行 `video_url: str`
xiaoxia added 1 commit 2026-09-09 10:29:40 +08:00
fix: AI数字人对口型接口对齐后端新参数 video_url (#1809 补充)
CI/CD Pipeline / Check push changed paths (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / PR Build API Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m26s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m30s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m56s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 1m59s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 2m3s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m8s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 2m24s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 5m27s
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Successful in 1s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 4m2s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 5s
AI Code Review / AI Code Review (pull_request) Successful in 6m17s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 39s
deea31dc07
- createLipsyncJob 参数 video_asset_id → video_url(后端 schema 已改)
- 新增 getAssetById:先按素材 id 查 /assets/{id} 拿 file_url 再传给后端
- voice_id/script_text 直接传后端(后端内部调 TTS)
- 删除前端 video_asset_id 传参,全工程 video_asset_id 残留已清零
- 新增 file_url 为空时的明确 toast 提示,避免静默失败
- UI/其他功能不动

🚀 预览环境已部署

项目 详情
PR号 #1816
预览链接 https://pr-1816.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #1816 | | 预览链接 | [https://pr-1816.preview.xiaoxiajianji.com](https://pr-1816.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
auto-approve-bot approved these changes 2026-09-09 10:31:48 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-09-09 10:31:48 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot merged commit 547561f473 into develop 2026-09-09 10:35:50 +08:00
auto-approve-bot deleted branch fix/ai-avatar-lipsync-api-align 2026-09-09 10:35:51 +08:00

🗑️ 预览环境已清理

PR #1816 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #1816 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Sign in to join this conversation.