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. :)
podcast_video.mp4
-
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 yourmagick.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 yourOPENAI API key
.OPENAI_API_KEY = "sk-xxxxxxxxxxxxxxxxxxxxx"
-
Clone the repository:
git clone https://github.com/BlackThompson/DIY_Podcast_Generator.git cd DIY_Podcast_Generator
-
Install the required packages:
pip install -r requirements.txt
-
Run the script:
python app.py
-
Click the given URL:
Running on local URL: http://127.0.0.1:xxxx
-
You can upload a PDF file (a paper suggested), or input some text, then click
submit
. -
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
The application logs its activities to DIY_Podcast.log
with the following format:
%(asctime)s - %(levelname)s - %(message)s