Skip to main content

Local audio and YouTube transcription CLI

Project description

ytxt

ytxt is a local, private CLI tool for transcribing audio from YouTube, web URLs, or local files using faster-whisper. All processing happens securely on your machine—no external APIs or cloud services required.

Installation

Ensure you have ffmpeg installed on your system. Then, install the project:

pip install .

Alternatively, if you are running from the source:

pip install -r requirements.txt

Usage

Basic usage:

ytxt <url_or_local_file_path>

Options

  • --format [text|markdown|srt|json]: Specify output format.
  • --model [base|small|medium|large]: Choose the Whisper model size.
  • --timestamps: Include start and end times in text/markdown output.
  • --output <path>: Save the transcript to a file.
  • --no-cache: Force a re-transcription by ignoring existing cache.

Examples

Transcribe a web URL (YouTube or other):

ytxt https://www.example.com/audio.mp3 --format markdown --timestamps --output transcript.md

Transcribe a local audio file:

ytxt path/to/audio.mp3 --model medium --output transcript.txt

Features

  • Local-Only: Privacy-first; no data leaves your machine.
  • Universal Support: Transcribe YouTube videos, web audio URLs, and local files.
  • Caching: Efficiently caches results to avoid redundant work.
  • Formats: Supports text, Markdown, SRT, and JSON.
  • Model Selection: Flexibility to balance accuracy and performance by choosing your desired Whisper model size.

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

ytxt-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

ytxt-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ytxt-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ytxt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8a7861c3e09e892266f03dcda50b36c588689ae4bee809d3a483ee7766eaf7b9
MD5 eac1eb5f1e8b4fd5131177a2770bf3b2
BLAKE2b-256 c7d6c606d5b093b2313300c0a2db4f7f7b3ad5141c9429e461fe56afbe51a1ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for ytxt-0.1.0.tar.gz:

Publisher: publish.yml on RayanR000/ytxt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ytxt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ytxt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75c74caaea219e59c879782eae22e293c9057e284e7cb59ac209d3b58108f79c
MD5 70a93e4c5c463ee958d799625a798e85
BLAKE2b-256 0deaf4f9bb04e91cca93a8d3e778b0713d779d2b30a51d7679fafaba57ecd70f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ytxt-0.1.0-py3-none-any.whl:

Publisher: publish.yml on RayanR000/ytxt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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