Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 1.82 KB

README.md

File metadata and controls

69 lines (43 loc) · 1.82 KB

💬 DIY Podcast Generator 🎙️

License

A simple implementation of the Google NotebookLM Audio overview function (of course, the performance of this system is somewhat inferior). But you can run 💬 DIY Podcast Generator on your PC, and generate a podcast video with captions. :)

demo

Demo

podcast_video.mp4

Prerequisites

  • Python>=3.10

  • Please make sure that your computer has FFmpeg and ImageMagick installed.

  • Remember to revise the file gen_video.py the line below to your magick.exe path (it should be line 15).

    change_settings({"IMAGEMAGICK_BINARY": r"C:\Program Files\ImageMagick\magick.exe"})
  • Create a new .env file in the root directory of this project , and add your OPENAI API key.

    OPENAI_API_KEY = "sk-xxxxxxxxxxxxxxxxxxxxx"
    

Installation

  1. Clone the repository:

    git clone https://github.com/BlackThompson/DIY_Podcast_Generator.git
    cd DIY_Podcast_Generator
  2. Install the required packages:

    pip install -r requirements.txt

Usage

  1. Run the script:

    python app.py
  2. Click the given URL:

    Running on local URL: http://127.0.0.1:xxxx
  3. You can upload a PDF file (a paper suggested), or input some text, then click submit.

  4. The audio will be generated faster than the video. The video generation may take over 30 minutes (sorry for that slow). Patience is key in life XD

Logging

The application logs its activities to DIY_Podcast.log with the following format:

%(asctime)s - %(levelname)s - %(message)s