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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f077c8f347dbfb2a5e03fb9d23bbb343bdf06c3dbc5e14a7b23bc665fc16731
|
|
| MD5 |
a6ef0581db2b1d0220edb26634793dcf
|
|
| BLAKE2b-256 |
a66ab4abeeacc1561b530805cc08cbc961fd5984363fc66e1915329c67ed59a2
|
Provenance
The following attestation bundles were made for ytxt-0.1.1.tar.gz:
Publisher:
publish.yml on RayanR000/ytxt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ytxt-0.1.1.tar.gz -
Subject digest:
2f077c8f347dbfb2a5e03fb9d23bbb343bdf06c3dbc5e14a7b23bc665fc16731 - Sigstore transparency entry: 1612936855
- Sigstore integration time:
-
Permalink:
RayanR000/ytxt@56c7bc7f869b53a5fef643ab9c761b5e1ff3ea16 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/RayanR000
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@56c7bc7f869b53a5fef643ab9c761b5e1ff3ea16 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6a4be04a10b405740fa3130bf44f1a4fa1142073c5eea32b0d6afd653fa6f39
|
|
| MD5 |
7c802f7c4daa5b98e1b1cdd9050d529b
|
|
| BLAKE2b-256 |
0755e187965ac673ec5b9c384b68ddb03909a9fd7359cd2cc2a53cadf9ff6ea9
|
Provenance
The following attestation bundles were made for ytxt-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on RayanR000/ytxt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ytxt-0.1.1-py3-none-any.whl -
Subject digest:
b6a4be04a10b405740fa3130bf44f1a4fa1142073c5eea32b0d6afd653fa6f39 - Sigstore transparency entry: 1612937121
- Sigstore integration time:
-
Permalink:
RayanR000/ytxt@56c7bc7f869b53a5fef643ab9c761b5e1ff3ea16 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/RayanR000
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@56c7bc7f869b53a5fef643ab9c761b5e1ff3ea16 -
Trigger Event:
release
-
Statement type: