Skip to content

Commit a88b592

Browse files
committed
fix for output type
1 parent f4a3eff commit a88b592

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/services/assistant/updateStoryAndScene.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ClapSegment, ClapSegmentCategory, newSegment } from '@aitube/clap'
1+
import { ClapOutputType, ClapSegment, ClapSegmentCategory, newSegment } from '@aitube/clap'
22
import {
33
AssistantMessage,
44
AssistantSceneSegment,
@@ -76,6 +76,8 @@ export async function updateStoryAndScene({
7676
prompt: prompt,
7777
label: prompt,
7878
category,
79+
// TODO put SOUND in here
80+
// outputType: category === ClapSegmentCategory.SOUND || category === ClapSegmentCategory.MUSIC || category === ClapSegmentCategory.DIALOGUE
7981
}
8082

8183
const segment: TimelineSegment = await clapSegmentToTimelineSegment(
@@ -150,6 +152,7 @@ export async function updateStoryAndScene({
150152
newSegment({
151153
...segmentProperties,
152154
category: ClapSegmentCategory.VIDEO,
155+
outputType: ClapOutputType.VIDEO,
153156
})
154157
)
155158
)
@@ -158,6 +161,7 @@ export async function updateStoryAndScene({
158161
newSegment({
159162
...segmentProperties,
160163
category: ClapSegmentCategory.STORYBOARD,
164+
outputType: ClapOutputType.IMAGE
161165
})
162166
)
163167
)

0 commit comments

Comments
 (0)