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)
- Install uv:
pip install uv
- Create and activate a virtual environment:
uv venv .venv source .venv/bin/activate
- Install dependencies (from project root):
uv pip install -e .
- Install ffmpeg (required for audio extraction):
- macOS (Homebrew):
brew install ffmpeg
- Other OS:
Download from ffmpeg.org and ensure
ffmpegandffprobeare in your PATH.
- macOS (Homebrew):
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8640a95336f2bc752a3e370a5ff70dcd36fc5a8ac93ad244bafb06fd40eeb68
|
|
| MD5 |
5151ac2879bae43b9d1a1d9226a2fcf7
|
|
| BLAKE2b-256 |
b07ccb8ebe4a5fe262638f9da91c875cd86b054492cc507bd51061b7445ce16a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab1218083552b876777d6ebe5c7433cb5b2b594be00ec89fe0c7d9e6344b6acf
|
|
| MD5 |
3796a45c04b06ebbdace6353dedb683d
|
|
| BLAKE2b-256 |
0ca1b96f2c56e229dc3bc2b7d1a8f9a02247d9d7cad4b4b5b1f1ddb5d47b644a
|