NewsAI is a python script that can generate a short video giving the summary of a news. It generates a video that have a short title for news and it has an image about the news and a voice that reads the news.
If you want to see a video generated by NewsAI click here
- Fetches the news from newsx api and extracts title, subtitle and image url from it.
- Generate a frame(image) in which it aligns title and image of the news.
- Generate the video without audio from the frame
- Generate the audio file for the news i.e. the summary in audio form.
- Attach the audio and video(without audio) file together and create final output video.
-
Fork the repo and clone it or download the zip file of the project.
-
Open the
main.py
file in your code editor.. -
Run it and you will see videos generated in
files
folder.Note:- You will need to generate your own api key and replace it with
API_KEY
.(If you want to contribute or make changes, follow below steps >>>)
-
Open the cloned file or extracted file(from zip file downloaded).
-
Make changes in the code.
-
Raise a PR. If the changes will be good enough to be included, the PR will be merged.