fix:한국인 여성 캐릭터 고정 + 나레이션-영상 싱크 버그 수정
- Gemini 프롬프트: visual_prompt에 한국인 여성(20대) 등장인물 규칙 추가 - Veo 프롬프트: 모든 클립에 "Korean woman in her 20s" 프리픽스 자동 추가 - 싱크 버그: activeNarrationPaths 인덱스 off-by-one ($num-1→$num) 수정 - 나레이션이 영상보다 1장면 앞서 재생되던 근본 원인 - concatNarrations: atrim+apad로 나레이션을 장면 길이에 정확히 매칭 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -205,10 +205,11 @@ public function handle(
|
||||
$activeScenes = array_filter($scenes, fn ($s) => in_array($s['scene_number'], $activeSceneNums));
|
||||
$activeScenes = array_values($activeScenes);
|
||||
|
||||
// 나레이션 키를 장면 번호로 유지 (concatNarrations에서 scene_number로 매칭)
|
||||
$activeNarrationPaths = [];
|
||||
foreach ($activeSceneNums as $num) {
|
||||
if (isset($narrationPaths[$num - 1])) {
|
||||
$activeNarrationPaths[] = $narrationPaths[$num - 1];
|
||||
if (isset($narrationPaths[$num])) {
|
||||
$activeNarrationPaths[$num] = $narrationPaths[$num];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user