Skip to main content

A command-line tool to transcribe audio from YouTube and other sources using Whisper.

Project description

transcriber

Transcribes audio and video from a URL to text using OpenAI Whisper (local) with Python.

Quick Setup

Run the provided setup script (macOS/Homebrew or manual ffmpeg for others):

./setup.sh

This will:

  • Install uv (if needed)
  • Create and activate a virtual environment
  • Install all Python dependencies
  • Install ffmpeg (macOS/Homebrew) or prompt for manual install

Manual Setup (Alternative)

  1. Install uv:
    pip install uv
    
  2. Create and activate a virtual environment:
    uv venv .venv
    source .venv/bin/activate
    
  3. Install dependencies (from project root):
    uv pip install -e .
    
  4. Install ffmpeg (required for audio extraction):
    • macOS (Homebrew):
      brew install ffmpeg
      
    • Other OS: Download from ffmpeg.org and ensure ffmpeg and ffprobe are in your PATH.

Usage Example

from transcriber.main import transcribe_url, combine_transcription

url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
result = transcribe_url(url)
print(result['text'])
  • transcribe_url(url) downloads and transcribes the audio from the URL.
  • transcribe_file(filename) transcribes an audiofile.

Notes

  • This package uses local Whisper (no API key required).
  • The first run will download the Whisper model (hundreds of MB).
  • ffmpeg must be installed and available in your system PATH.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video2text-0.1.0.tar.gz (111.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video2text-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file video2text-0.1.0.tar.gz.

File metadata

  • Download URL: video2text-0.1.0.tar.gz
  • Upload date:
  • Size: 111.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for video2text-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d8640a95336f2bc752a3e370a5ff70dcd36fc5a8ac93ad244bafb06fd40eeb68
MD5 5151ac2879bae43b9d1a1d9226a2fcf7
BLAKE2b-256 b07ccb8ebe4a5fe262638f9da91c875cd86b054492cc507bd51061b7445ce16a

See more details on using hashes here.

File details

Details for the file video2text-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: video2text-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for video2text-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab1218083552b876777d6ebe5c7433cb5b2b594be00ec89fe0c7d9e6344b6acf
MD5 3796a45c04b06ebbdace6353dedb683d
BLAKE2b-256 0ca1b96f2c56e229dc3bc2b7d1a8f9a02247d9d7cad4b4b5b1f1ddb5d47b644a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page