🤖 Totally free YouTube Shorts Generator automatically using Gemini API by simply running the script
FREE ALTERNATIVE TO OPENAI
Enter the theme of the video and AI will generate the content for the video automatically using Gemini API The content generated by AI is then converted to speech using gTTs and it saves the files as "speech.mp3 Video is edited using MoviePy which takes a gameplay video, trims a random part of it and add the speech generated on top of it. Then the video is resized to 9:16 ratio which is the ratio for shorts or reels. **1. Gemini API key -** Get api key from https://ai.google.dev/gemini-api/docs/api-key.**2. Gemini API -** pip google.generativeai.
**3. gTTs -** pip install gTTs.
**4. MoviePy -** pip install moviepy.
To use download the repository as zip file or clone the repository directly.
also download some gameplay footage (random minecraft parkour gameplay) from online [will upload the gameplay files myself later] and add them to a folder and name it gameplay.
also create a new folder called generated/
To use run the script yt.py.
Before running the script make sure you get the key from above website then add the said key to constants.py file.
Now you only have to run the script and in some time you will have your generated video short. The generated short will be saved in '/generated' directory.