This is a tool I created to use several AI programs in order to generate motivational short videos that can be posted on social media. It has support for outputting logs into discord using a discord bot.
I RECOMMEND THAT YOU SAVE THIS IN A SEPARATE FOLDER TO AVOID ANY FILES BEING ACCIDENTIALLY DELETED
Use the package manager pip to install the several necessary packages to run the script.
pip install elevenlabs assemblyai GPT4All moviepy pydub opencv-python-headless av ffmpeg-python pysrt pillow numpy
Install ffmpeg using any of the methods seen here.
You will require the following accounts to run the script.
Add the proper AI keys to the following lines to set up the script.
client = ElevenLabs(
api_key="ELEVENLABS_AI_KEY",
)
import assemblyai as aai
#ASSEMBLY AI API KEY
aai.settings.api_key = "ASSEMBLY_AI_KEY"
The font can also be changed by changing the following line to the font path.
font="./my-font.ttf"
In order to have background videos, there is a folder titled Media
, in which 100 different videos titled 1.mp4 to 100.mp4 need to be provided in the 1080x1920px ratio (9:16 Vertical).
Just place a file titled music.mp3
into the root of the folder
Just run the start.bat
file to open the script.
A discord bot is highly recommended, and you can see how to create one here.
Replace the following lines with your bot information in the send_discord.py
file to set up the bot.
# Replace with your bot token
BOT_TOKEN = 'BOT_TOKEN'
# Replace with your channel ID
CHANNEL_ID = CHANNEL_ID