Code Monkey home page Code Monkey logo

brainrot.js's Issues

Ollama

I think it would be great to have a way to run it with ollama

Error when adding files

After running node localBuild.mjs, I get the following output:

Adding file to ffmpeg: BARACK_OBAMA-0.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: BEN_SHAPIRO-1.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: BARACK_OBAMA-2.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: BEN_SHAPIRO-3.mp3
Adding silence to ffmpeg
Adding file to ffmpeg: BARACK_OBAMA-4.mp3
Error: Cannot find ffprobe
Error transcribing audio (attempt 1): Error: HTTP error! status: 500
    at transcribeAudio (file:///home/androtim/brainrot.js/generate/transcribe.mjs:23:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:105:31)
    at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:63:2)
    at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:90:2`
Retrying in 1 second(s)...
Error transcribing audio (attempt 2): Error: HTTP error! status: 500
    at transcribeAudio (file:///home/androtim/brainrot.js/generate/transcribe.mjs:23:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:105:31)
    at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:63:2)
    at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:90:2
Retrying in 2 second(s)...
Error transcribing audio (attempt 3): Error: HTTP error! status: 500
    at transcribeAudio (file:///home/androtim/brainrot.js/generate/transcribe.mjs:23:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:105:31)
    at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:63:2)
    at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:90:2
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: HTTP error! status: 500
    at transcribeAudio (file:///home/androtim/brainrot.js/generate/transcribe.mjs:23:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:105:31)
    at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:63:2)
    at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:90:2

I installed ffprobe in a python venv and tried running node localBuild.mjs again but I still get the same result.
I am not able to install ffprobe using pip on my system as a whole as my OS does not permit it for some odd reason.

Are the errors cause by me not having ffprobe installed or is it something else?

Note: I use Ubuntu 23.10 and run on an Intel i3

License?

Hi this is very cool :)

If it had an open source license it could be fun to build upon it ๐Ÿ‘

Transcription Issue Relating to .SRT file missing(likely not Generated?)

After running node localBuild.mjs, my machine gets to the transcription, or subtitle part, after consolidating the audio files, but when it gets to that part, it has an error I can't trace back and I dont know how to fix, any suggestions?(BTW don't really know how to code so be specific please)
error message i receive

Finished concatenating audio files!
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^

[Error: ENOENT: no such file or directory, open 'public/srt/BARACK_OBAMA-0.srt'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'public/srt/BARACK_OBAMA-0.srt'
}

Port error

After running node localBuild.mjs, I get the following error:

file:///home/androtim/brainrot.js/generate/node_modules/mysql2/promise.js:374
const localErr = new Error();
^
Error: connect ECONNREFUSED 127.0.0.1:3306
at PromisePool.execute (/home/androtim/brainrot.js/generate/node_modules/mysql2/promise.js:374:22)
at query (file:///home/androtim/brainrot.js/generate/dbClient.mjs:21:31)
at transcribeFunction (file:///home/androtim/brainrot.js/generate/transcribe.mjs:98:9)
at async main (file:///home/androtim/brainrot.js/generate/localBuild.mjs:61:2)
at async file:///home/androtim/brainrot.js/generate/localBuild.mjs:88:2 {
code: 'ECONNREFUSED',
errno: -111,
sql: undefined,
sqlState: undefined,
sqlMessage: undefined
}

Does it mean that the port is not open?
I do not understand what is happening.

Note: I am running on an i3 on Linux Ubuntu 23.10

Rate limit exceeded

I'm trying to generate using this, but it keeps saying my rate limit is exceeded for my openai account for the image generation, saying i need to have a rate limtit of at least 6 images per min but i only have 5 per min allowed i guess. Does this mean that I need to upgrade my usage tier from 1 to 2? Is there a way i can run this to where it only generates 5 of its images at a time? anyways, thank you for your help!

Option to buy credits

It will be cool for an option to buy a specific amount of credits (like 10 credits) in a one time purchase or a monthly ( / yearly) subscription

Presidents voices not working

President voices(Donald, Joe, and Obama) arent working with eleven labs, any solutions? alternatives? workarounds?

Watermarks

Is it possible to remove/replace the watermarks present during and at the end of the video when generating locally?

FPS output does not allow uploading to tiktok

It seems the videos are being output at 60.0x fps, which is just barely above Tiktok's limit of 60fps. I've tried a few videos and they're all just barely too much FPS. Works fine for Youtube though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.