Shorts Generator is a tool designed to automate the process of generating short videos. It includes functionalities for audio processing, script processing, and video processing.
- Audio Processing: Tools for handling and processing audio files.
- Script Processing: Utilities for managing and processing video scripts.
- Video Processing: Functions for editing and generating videos from scripts and audio.
- Integrations: Includes uploaders for integrating with various platforms.
shorts_generator-main/
├── .env.example # Example environment configuration file
├── .gitignore # Git ignore file
├── assets/ # Assets used in the project
├── requirements.txt # Python dependencies
└── src/
├── audio_processing.py # Audio processing functions
├── llms/ # Language model scripts
├── main.py # Main entry point for the application
├── script_processing.py# Script processing functions
├── uploaders/ # Uploader scripts for various platforms
└── video_processing.py # Video processing functions
Ensure you have Python installed on your system. You can download Python from the official website.
-
Clone the repository:
git clone https://github.com/your-username/shorts_generator.git cd shorts_generator
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file based on the.env.example
:cp .env.example .env
-
Configure your environment variables in the
.env
file.ELEVEN_API_KEY: Your ElevenLabs API key for audio synthesis. OPENAI_API_KEY: Your OpenAI API key for text processing. YOUTUBE_API_KEY: Your YouTube API key for video uploading.
To upload videos to YouTube, you need to set up a YouTube client secret:
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
- Navigate to APIs & Services > Credentials.
- Click Create Credentials > OAuth Client ID.
- Configure the consent screen and save.
- Select Application type as Web application.
- Set the Authorized redirect URIs to
http://localhost:8080
. - Download the client secret JSON file.
- Save the downloaded file as
client_secret.json
in the root directory of the project.
Run the main script to start the application:
python src/main.py
audio_processing.py
: Contains functions for processing audio files.script_processing.py
: Contains functions for processing video scripts.video_processing.py
: Contains functions for video editing and generation.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This README provides an overview of the project's purpose, structure, and usage instructions. Feel free to modify it according to your project's specifics.