speedlearn-cli is a command-line tool that automates the process of downloading MP4 videos, converting them to MP3, transcribing the audio content, and generating detailed notes. This project was entirely built with Claude 3.5 Sonnet with Cursor in under an hour. Not a single line of code was written by a human.
Resources
- Download MP4 videos and convert them to MP3 format
- Transcribe audio files using the Groq API (OpenAI Whisper Large-v3 Turbo model)
- Generate detailed notes and minutia using the Anthropic Claude API (NEW Claude 3.5 Sonnet model)
- Efficient file handling with caching to avoid redundant operations
- Go 1.x or higher
- FFmpeg (for video to audio conversion)
- Groq API key
- Anthropic API key
-
Clone the repository:
git clone https://github.com/yourusername/speedlearn-cli.git cd speedlearn-cli
-
Install dependencies:
make deps
-
Build the project:
make build
Create a .env
file in the project root and add your Groq API key:
Run the tool with the following command: ./speedlearn-cli --filename <output_filename> --url <video_url>
The tool will:
- Download the video and convert it to MP3
- Transcribe the audio using the Groq API
- Save the MP3 and transcription in the
output/<filename>
directory
main.go
: Main application logic and CLI interfaceconvert.go
: Functions for video download and conversion to MP3transcribe.go
: Functions for audio transcription using the Groq APInotes.go
: Functions for generating notes using the Anthropic Claude APIMakefile
: Build and management commands
- Run tests:
make test
- Clean build artifacts:
make clean
- Build for Linux:
make build-linux
This entire project was conceptualized and implemented with the assistance of Claude 3.5 Sonnet, an AI language model, in under an hour. While functional, it may require further testing and refinement.