From dbbead3715cfcdf2b4231beeacc49ec3fe1d8a74 Mon Sep 17 00:00:00 2001 From: Noah Solomon Date: Mon, 28 Oct 2024 21:58:50 -0400 Subject: [PATCH] neets --- generate/eleven.mjs | 18 +++++++++++++++--- generate/localBuild.mjs | 7 ++++--- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/generate/eleven.mjs b/generate/eleven.mjs index 28aaaa0..1e1121f 100644 --- a/generate/eleven.mjs +++ b/generate/eleven.mjs @@ -95,6 +95,18 @@ export async function generateTranscriptAudio( const initialAgentName = audios[0].person; + // const contextContent = ` + // import { staticFile } from 'remotion'; + + // export const music: string = ${ + // music === 'NONE' ? `'NONE'` : `'/music/${music}.MP3'` + // }; + // export const fps = ${fps}; + // export const initialAgentName = '${initialAgentName}'; + // export const videoFileName = '/background/${background}-' + ${Math.floor( + // Math.random() * 10 + // )} + '.mp4'; + const contextContent = ` import { staticFile } from 'remotion'; @@ -103,9 +115,9 @@ export const music: string = ${ }; export const fps = ${fps}; export const initialAgentName = '${initialAgentName}'; -export const videoFileName = '/background/${background}-' + ${Math.floor( - Math.random() * 10 - )} + '.mp4'; +export const videoFileName = '/background/MINECRAFT-0.mp4'; + + export const subtitlesFileName = [ ${audios .map( diff --git a/generate/localBuild.mjs b/generate/localBuild.mjs index 4d2d269..966bc33 100644 --- a/generate/localBuild.mjs +++ b/generate/localBuild.mjs @@ -51,13 +51,14 @@ async function main() { const agentB = agents[1]; // CHANGE THIS VALUE FOR A CUSTOM VIDEO TOPIC - const videoTopic = 'Proximal Policy Optimization'; + const videoTopic = + 'Jordan Peterson is being eaten by a bear and joe rogan is trying to kiss the bear'; const aiGeneratedImages = true; - const fps = 15; + const fps = 60; const duration = 1; //minute //MINECRAFT or TRUCK or GTA const background = 'TRUCK'; - const music = 'NONE'; + const music = 'WII_SHOP_CHANNEL_TRAP'; const cleanSrt = true; await transcribeFunction(