Spaces:
Running
Running
Commit
·
379517b
1
Parent(s):
350665d
update
Browse files
src/app/api/v1/create/index.ts
CHANGED
@@ -200,7 +200,7 @@ Output: `
|
|
200 |
const musicPrompt = musicPrompts.at(0)
|
201 |
if (!musicPrompt) { throw new Error(`not enough music prompts`) }
|
202 |
|
203 |
-
console.log("musicPrompt:", musicPrompt)
|
204 |
|
205 |
clap.segments.push(newSegment({
|
206 |
track: 5,
|
|
|
200 |
const musicPrompt = musicPrompts.at(0)
|
201 |
if (!musicPrompt) { throw new Error(`not enough music prompts`) }
|
202 |
|
203 |
+
// console.log("musicPrompt:", musicPrompt)
|
204 |
|
205 |
clap.segments.push(newSegment({
|
206 |
track: 5,
|
src/app/api/v1/edit/music/generateMusic.ts
CHANGED
@@ -47,7 +47,8 @@ export async function generateMusic({
|
|
47 |
return
|
48 |
}
|
49 |
|
50 |
-
|
|
|
51 |
|
52 |
console.log(`generateMusic(): generating a music with:\n duration: ${durationInSec} sec\n prompt: ${prompt}`)
|
53 |
|
|
|
47 |
return
|
48 |
}
|
49 |
|
50 |
+
|
51 |
+
const durationInSec = 12 // musicSegment.assetDurationInMs / 1000
|
52 |
|
53 |
console.log(`generateMusic(): generating a music with:\n duration: ${durationInSec} sec\n prompt: ${prompt}`)
|
54 |
|