Skip to content

virtuecoder/transcribe

Repository files navigation

yt-transcribe

CLI tool that transcribes YouTube videos and local audio/video files. For YouTube, it fetches existing captions when available; otherwise downloads audio and transcribes locally with Whisper.

Requirements

  • Python 3.11+
  • uv
  • just
  • ffmpeg — required when downloading YouTube audio (not needed for local files)

macOS

brew install uv just ffmpeg

Linux (Debian/Ubuntu)

curl -LsSf https://astral.sh/uv/install.sh | sh
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
sudo apt install ffmpeg

Windows

winget install astral-sh.uv
winget install Casey.Just
winget install ffmpeg

Note: faster-whisper requires the Microsoft Visual C++ Redistributable (x64). Install it if you see a DLL error on first Whisper run.

Setup

cd transcribe
just install

Quick start

# Transcribe a YouTube video (captions if available, Whisper otherwise)
just run "https://youtube.com/watch?v=VIDEO_ID"

# Transcribe a local file
just run recording.mp3

# Print to stdout (safe to pipe)
just run "https://youtube.com/watch?v=VIDEO_ID" --print

Transcripts are saved to ~/Downloads by default using the video title as the filename.

Documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors