Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Audio Transcriber

Open in GitHub Codespaces

This tool downloads audio from a YouTube video and transcribes it to a text file using the faster-whisper AI model.

Why Codespaces?

This project requires ffmpeg and specific Python libraries that can be tricky to install on some local machines (especially older macOS versions). Running this in GitHub Codespaces provides a pre-configured Linux environment where everything just works.

Prerequisites

  1. FFmpeg: This is required for audio processing.
    • Codespaces: Installed automatically!
    • macOS: Install via Homebrew: brew install ffmpeg
    • Windows: Download from ffmpeg.org and add to PATH.
    • Linux: sudo apt install ffmpeg

Setup

Option A: GitHub Codespaces (Recommended)

  1. Push this folder to a GitHub repository.
  2. Click the "Code" button on your repository page.
  3. Select the "Codespaces" tab and click "Create codespace on main".
  4. Wait for the environment to build. It will automatically install ffmpeg and all Python dependencies.

Option B: Local Setup

  1. Navigate to the project directory:

    cd youtube_transcribe
  2. Create and activate a virtual environment (already done if you followed the assistant):

    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt

Usage

Run the script:

python transcribe.py

Or provide the URL directly:

python transcribe.py "https://www.youtube.com/watch?v=..."

The transcription will be saved as a .txt file in the downloads folder.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages