The YouTube Video Summarizer is a codebase that allows users to summarize the audio content of YouTube videos. It utilizes the OpenAI API to transcribe the audio and provide a summary of the video's content. The codebase consists of several modules and functions that handle video downloading, audio transcription, and splitting the video into smaller parts for processing.
- Download YouTube videos and extract the audio stream
- Split the video into smaller parts for efficient processing
- Transcribe the audio using the OpenAI API
- Generate a summary of the video's content
To install the YouTube Video Summarizer, follow these steps:
- Clone the repository:
git clone https://github.com/kevin19930919/youtube_video_summarize.git
- Navigate to the project directory:
cd youtube_video_summarize
- Install the required dependencies:
go get -d ./...
The YouTube Video Summarizer has the following dependencies:
- go-openai: Go client library for the OpenAI API
- kkdai/youtube: Go client library for the YouTube API
To use the YouTube Video Summarizer, follow these steps:
- Obtain an API key from OpenAI and set it in
config.json
as variable:"open_ai_secret" : <your_api_key>
- Run the main program with the video ID as a command-line argument:
go run main.go -vid <video_id>
The program will download the YouTube video, split it into smaller parts, transcribe the audio using the OpenAI API, and generate a summary of the video's content.
The YouTube Video Summarizer codebase is maintained by Kevin (kevin19930919).
Contributions to the YouTube Video Summarizer are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
To contribute code changes, follow these steps:
- Fork the repository
- Create a new branch for your feature or bug fix:
git checkout -b my-feature
- Make your changes and commit them:
git commit -am 'Add new feature'
- Push the branch to your forked repository:
git push origin my-feature
- Open a pull request on the main repository
If you need support or have any questions, feel free to reach out to the maintainer at [email protected].
For commercial support inquiries, please contact the maintainer at [email protected].
The YouTube Video Summarizer is licensed under the MIT License.