feat: AI数字人对口型视频生成速度优化 - FFmpeg编码提速 + TTS合成异步化 #1844
Reference in New Issue
Block a user
Delete Branch "feat/lipsync-speed-optimization-v3"
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?
优化内容
优化1(P2,极小改动):FFmpeg编码提速
apps/api/app/services/ai_avatar_render_service.py-preset fast改为-preset veryfast优化2(P0-2,中等改动):TTS合成移到Celery异步
apps/api/app/tasks/lipsync_tts.py,将TTS合成+MediaKit提交封装为独立Celery异步任务create_job先创建DB记录(状态=tts_processing),再触发Celery任务其他改动
cancel_job支持取消tts_processing状态的任务lipsync.py路由移除同步CosyVoiceError处理,移除cosyvoice_service依赖apps.api.app.tasks.lipsync_tts测试
test_lipsync_speed_optimization.py(12个测试用例)test_lipsync_routes.py和test_ai_avatar_emotion_tts_lipsync.py适配新行为🚀 预览环境已部署
b62b1bcfccto043f489300🗑️ 预览环境已清理
PR #1844 已关闭或合并,对应的预览环境已被清理。