Skip to main content

Download audio from YouTube and transcribe it

Project description

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:用于转录音频为文本的实现

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

dl_a2t-0.0.2.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

dl_a2t-0.0.2.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file dl_a2t-0.0.2.4.tar.gz.

File metadata

  • Download URL: dl_a2t-0.0.2.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dl_a2t-0.0.2.4.tar.gz
Algorithm Hash digest
SHA256 6a67fed793af1e07c37535513e07193840ecad20cde5d06e2d47f8f3eacaa84e
MD5 4815fdeb147696568fe7897e2f670cc6
BLAKE2b-256 1a35bc927f9b149f7e6729e1c86f5359159d697fe76c6ed231760aa3d282d584

See more details on using hashes here.

Provenance

The following attestation bundles were made for dl_a2t-0.0.2.4.tar.gz:

Publisher: ci.yml on CNSeniorious000/dl-a2t

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

File details

Details for the file dl_a2t-0.0.2.4-py3-none-any.whl.

File metadata

  • Download URL: dl_a2t-0.0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dl_a2t-0.0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 01eb11f261b0e67440a660423800cb3fe82919ad03ce367b0f0467b1b9719677
MD5 fbf32cf6cc440dc6d4f592a68d7943c7
BLAKE2b-256 756dfee285c2d235b9874d3add2a278bb942ccb0d348ae89bbd416023c3a8f11

See more details on using hashes here.

Provenance

The following attestation bundles were made for dl_a2t-0.0.2.4-py3-none-any.whl:

Publisher: ci.yml on CNSeniorious000/dl-a2t

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