diff --git a/generate/transcript.mjs b/generate/transcript.mjs index 8ef60b6..ccd4dcc 100644 --- a/generate/transcript.mjs +++ b/generate/transcript.mjs @@ -22,11 +22,22 @@ async function generateTranscript(topic, agentA, agentB, duration) { messages: [ { role: 'system', - content: `Create a dialogue for a short-form conversation on the topic of ${topic}...`, + content: `Create a dialogue for a short-form conversation on the topic of ${topic}. The conversation should be between two agents, ${agentA.replace( + '_', + ' ' + )} and ${agentB}, each with their unique mannerisms and speech patterns. ${agentA.replace( + '_', + ' ' + )} should engage with the topic with a sense of curiosity and a desire for practical understanding, while ${agentB.replace( + '_', + ' ' + )} offers a deep, analytical perspective. The dialogue should be engaging and include light humor, yet still provide meaningful insights into ${topic}. Limit the dialogue to a maximum of ${ + duration * 7 + } exchanges, aiming for a concise transcript that would last between ${duration} minutes. The person attribute should either be ${agentA} or ${agentB}. The line attribute should be that character's line of dialogue. It should be risque and edgy, so as to be interesting to watch. I also need an asset description under the asset attribute which would be a relevant search query to find an image which should be relevant to the overall topic of the conversation. The asset descriptions shouldn't be vague, but a description of something that you think would be a good image to go along with the conversation. Specificity is key. And don't include a direct mention of a politician in assets, if for example, Trump is mentioned, don't use the word Trump in the asset description, but instead something like white male with blonde hair combover ya know. The JSON format WHICH MUST BE ADHERED TO ALWAYS is as follows: { transcript: { [ {'person': 'the exact value of ${agentA} or ${agentB} depending on who is talking', 'line': 'their line of conversation in the dialog', asset: 'relevant search query based on the current line'} ] } }`, }, { role: 'user', - content: `generate a video about ${topic}...`, + content: `generate a video about ${topic}. Both the agents should talk about it in a way they would, but extremify their qualities and make the conversation risque so that it would be interesting to watch and edgy.`, }, ], response_format: { type: 'json_object' }, diff --git a/src/app/api/create/route.ts b/src/app/api/create/route.ts index 1822357..32110b3 100644 --- a/src/app/api/create/route.ts +++ b/src/app/api/create/route.ts @@ -13,7 +13,7 @@ async function insertRecordToDB(body: any) { url: "", timestamp: new Date(), duration: body.duration ?? 1, - music: body.music ?? "NONE", + music: body.music ?? "WII_SHOP_CHANNEL_TRAP", background: body.background !== null ? body.background @@ -22,7 +22,7 @@ async function insertRecordToDB(body: any) { : Math.random() > 0.5 ? "GTA" : "TRUCK", - fps: body.fps ?? 20, + fps: body.fps ?? 30, aiGeneratedImages: true, // body.aiGeneratedImages, cleanSrt: false,