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 ytxt:

pip install ytxt

Alternatively, to install from source:

git clone https://github.com/RayanR000/ytxt.git
cd ytxt
pip install -e .

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.1.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.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ytxt-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2f077c8f347dbfb2a5e03fb9d23bbb343bdf06c3dbc5e14a7b23bc665fc16731
MD5 a6ef0581db2b1d0220edb26634793dcf
BLAKE2b-256 a66ab4abeeacc1561b530805cc08cbc961fd5984363fc66e1915329c67ed59a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ytxt-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: ytxt-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6a4be04a10b405740fa3130bf44f1a4fa1142073c5eea32b0d6afd653fa6f39
MD5 7c802f7c4daa5b98e1b1cdd9050d529b
BLAKE2b-256 0755e187965ac673ec5b9c384b68ddb03909a9fd7359cd2cc2a53cadf9ff6ea9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ytxt-0.1.1-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