This tool is designed to transcribe YouTube videos and generate a concise summary using OpenAI's Whisper ASR API and GPT-3.5 Turbo. It is particularly useful for content creators who want to quickly summarize the main points of a video for their blogs or other platforms.
- YouTube Video Transcription: Downloads and transcribes YouTube videos into text format.
- GPT-3.5 Turbo Integration: Uses OpenAI's powerful language model to generate a summary of the transcribed content.
- File Management: Automatically cleans up downloaded files after processing to maintain a clean workspace.
Before using the tool, ensure you have the following:
- Node.js installed on your machine.
- OpenAI API key for both Whisper ASR and GPT-3.5 Turbo.
- Whisper Node.js library installed (
npm install whisper-nodejs
). - OpenAI Node.js library installed (
npm install openai
). - YouTube Exec library installed (
npm install youtube-exec
).
-
Clone the repository:
git clone https://github.com/isaac0yen/Video-summarizer.git
-
Install dependencies:
npm install
-
Replace
ENTER_YOUR_SECRET_KEY
with your actual OpenAI API key in theindex.js
file. -
Run the tool with a YouTube video URL:
node youtube.js
Make sure the youtube URL is being put into the
youtube.js
file -
The tool will download, transcribe, and summarize the video, providing a summary in the console and saving it in a
summary.txt
file.
- OpenAI for providing powerful natural language processing tools.
- Whisper for efficient audio transcription.
Feel free to contribute or open issues to improve the tool!