feat: 节奏模板让批量变体片段时长分布不同 (Issue #1764) #1770
Reference in New Issue
Block a user
Delete Branch "feat/rhythm-templates-1764"
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,1,1,1,1]、[2,1,3,1,2]、[1,2,1,2,1]等rhythm_template参数,按权重比例分配时长改动位置
packages/domain/voice_duration_planner.py:核心节奏模板逻辑apps/api/app/services/edit_plan_service.py:ensure_batch_variant_plans为每个变体生成不同节奏模板写入 plan config;apply_voice_duration_to_plan从 config 读取模板传给分配函数测试
验收标准
🚀 预览环境已部署