Skip to main content

dl-a2t

dl-a2t 是一个从 YouTube 下载音频并转录为文本的工具。它使用 yt-dlp 下载音频,并使用 OpenAI 的 Whisper 模型进行转录。

使用方法

使用 dl-a2t 需要 Python 3.12 或更高版本。首先,确保你已经安装了 Python 和 pip。然后,使用以下命令安装 dl-a2t:

pip install dl-a2t

安装完成后,你可以使用以下命令来下载音频并转录为文本:

dl-a2t run url_of_video output_file

也可以输入一个文件,每行是一个 url

dl-a2t batch input_file output_file

获取详细的 API 文档:

dl-a2t --help
dl-a2t run --help
dl-a2t batch --help

Options

  • --model:选择 Whisper 模型大小,默认为 tiny

依赖项

dl-a2t 依赖以下库:

  • yt-dlp:用于下载 YouTube 视频的音频
  • OpenAI Whisper:用于转录音频为文本
  • Typer:用于命令行界面

文件结构

dl-a2t 的文件结构如下:

  • cli.py:命令行界面
  • pyproject.toml:项目配置文件
  • impl/download.py:用于下载音频的实现
  • impl/transcript.py:用于转录音频为文本的实现

Metadata

Release files for dl-a2t 0.0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dl-a2t 0.0.2.4
File Size Uploaded
dl_a2t-0.0.2.4.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dl-a2t 0.0.2.4
File Interpreter ABI Platform
dl_a2t-0.0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / dl_a2t-0.0.2.4.tar.gz

Download URL dl_a2t-0.0.2.4.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6a67fed793af1e07c37535513e07193840ecad20cde5d06e2d47f8f3eacaa84e
BLAKE2b-256 checksum
How to use checksums
1a35bc927f9b149f7e6729e1c86f5359159d697fe76c6ed231760aa3d282d584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 15, 2025.

Transparency log

Release files / dl_a2t-0.0.2.4-py3-none-any.whl

Download URL dl_a2t-0.0.2.4-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01eb11f261b0e67440a660423800cb3fe82919ad03ce367b0f0467b1b9719677
BLAKE2b-256 checksum
How to use checksums
756dfee285c2d235b9874d3add2a278bb942ccb0d348ae89bbd416023c3a8f11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 15, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.2.4 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page