Soccer Narrator is an AI-powered project that generates voiceovers for soccer videos. It can generate narrations in different styles and languages, overlay the generated audio on the video, and even generate subtitles.
It's based on the code by https://github.com/ggoonnzzaallo/llm_experiments, but I've changed it so it works with any video on youtube!
- Video Processing: Extracts frames from a given video and generates a description for each frame.
- Narration Generation: Uses the frame descriptions to generate a narration in the style of a soccer commentator.
- Audio Generation: Converts the generated narration into audio.
- Audio Overlay: Overlays the generated audio on the original video.
- Subtitle Generation: Generates subtitles for the video in different languages. How to Use
- Clone the repository.
- Install the required Python packages listed in requirements.txt.
- Obtain an OpenAI API key by signing up on the OpenAI website.
- Run the narrator.ipynb notebook to generate the narrations and videos.
Here are some examples of the outputs generated by the project:
- Video with English narration and subtitles:
english_subtitles.mp4
- Video with Japanese narration and subtitles:
japanese_subtitles.mp4
The current implementation has some limitations. For example, the narration may not always match the video perfectly, and the quality of the narration can vary depending on the quality of the video and the descriptions generated for each frame.