Skip to content

avonx/YoutubeShortCreator

Repository files navigation

Youtube-short creater with BERT-VITS2 & DALLE-3 & ChatGPT 🚀

Automate the creation of YouTube Shorts locally, simply by providing a video topic to talk about.

Installation 📥

YoutubeShortCreator requires Python 3.11 to run effectively. If you don't have Python installed, you can download it from here.

After you finished installing Python, you can install YoutubeShortCreator by following the steps below:

git clone https://github.com/avonx/YoutubeShortCreator.git
cd YoutubeShortCreator

# Install requirements
pip install -r requirements.txt

# Copy .env.example and fill out values
cp .env.example .env

# Run the python program
python generate_video.py

# Alternatively, run this to upload videos to youtube automatically.
python upload_video.py

See .env.example for the required environment variables.

Usage 🛠️

  1. Copy the .env.example file to .env and fill in the required values
  2. Run this command python generate_video.py
  3. Enter a topic to talk about
  4. Wait for the video to be generated
  5. The video's location is output/<タイトルは自動的に生成されます>.mp4

Setting Up Style-Bert-VITS2 API

To use Style-Bert-VITS2 for voice synthesis, follow these steps:

  1. Deploy Style-Bert-VITS2 as an API server. Documentation here.

  2. In your .env file, specify the API endpoint:

    TTS_API_URL=http:https://your-api-server-address/voice 
  3. Adjust parameters in src/text2voice.py as needed to match the API's requirements.

Automatic YouTube Uploading 🎥

To use this feature, you need to:

  1. Create a project inside your Google Cloud Platform -> GCP.

  2. Obtain client_secret.json from the project and add it to the Backend/ directory.

  3. Enable the YouTube v3 API in your project -> GCP-API-Library

  4. Create an OAuth consent screen and add yourself (the account of your YouTube channel) to the testers.

  5. Enable the following scopes in the OAuth consent screen for your project:

    'https://www.googleapis.com/auth/youtube.upload'
    

License 📝

See LICENSE file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages