diff --git a/voicevox-remotion-template/src/data/pizza-oven-project-01/script.ts b/voicevox-remotion-template/src/data/pizza-oven-project-01/script.ts index ec10e00..8ee408e 100644 --- a/voicevox-remotion-template/src/data/pizza-oven-project-01/script.ts +++ b/voicevox-remotion-template/src/data/pizza-oven-project-01/script.ts @@ -75,11 +75,17 @@ ...options, }); -export const wait = (id: string, durationSeconds: number): WaitEvent => ({ - type: "wait", - id, - durationSeconds, -}); +let waitEventIndex = 0; + +export const wait = (durationSeconds: number): WaitEvent => { + waitEventIndex += 1; + + return { + type: "wait", + id: `wait-${String(waitEventIndex).padStart(3, "0")}`, + durationSeconds, + }; +}; export const timeline = [ say("pizza-oven-project-01-sayo-001", "sayo", "こんにちは。小夜です。"), @@ -94,7 +100,7 @@ } ), say("pizza-oven-project-01-sayo-004", "sayo", "ピザ窯を。"), - wait("pizza-oven-project-01-wait-001", 1), + wait(1), say("pizza-oven-project-01-sayo-005", "sayo", "まずはblender上で、耐熱レンガの寸法を元に積み方を設計することにしました。"), ] satisfies TimelineEvent[];