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
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 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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6a67fed793af1e07c37535513e07193840ecad20cde5d06e2d47f8f3eacaa84e
|
|
MD5 |
4815fdeb147696568fe7897e2f670cc6
|
|
BLAKE2b-256 |
1a35bc927f9b149f7e6729e1c86f5359159d697fe76c6ed231760aa3d282d584
|
Provenance
The following attestation bundles were made for dl_a2t-0.0.2.4.tar.gz
:
Publisher:
ci.yml
on CNSeniorious000/dl-a2t
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
dl_a2t-0.0.2.4.tar.gz
-
Subject digest:
6a67fed793af1e07c37535513e07193840ecad20cde5d06e2d47f8f3eacaa84e
- Sigstore transparency entry: 213411265
- Sigstore integration time:
-
Permalink:
CNSeniorious000/dl-a2t@313138be784a2dbb29186a223661d5573bd4f284
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/CNSeniorious000
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
ci.yml@313138be784a2dbb29186a223661d5573bd4f284
-
Trigger Event:
push
-
Statement type:
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
01eb11f261b0e67440a660423800cb3fe82919ad03ce367b0f0467b1b9719677
|
|
MD5 |
fbf32cf6cc440dc6d4f592a68d7943c7
|
|
BLAKE2b-256 |
756dfee285c2d235b9874d3add2a278bb942ccb0d348ae89bbd416023c3a8f11
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
dl_a2t-0.0.2.4-py3-none-any.whl
-
Subject digest:
01eb11f261b0e67440a660423800cb3fe82919ad03ce367b0f0467b1b9719677
- Sigstore transparency entry: 213411268
- Sigstore integration time:
-
Permalink:
CNSeniorious000/dl-a2t@313138be784a2dbb29186a223661d5573bd4f284
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/CNSeniorious000
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
ci.yml@313138be784a2dbb29186a223661d5573bd4f284
-
Trigger Event:
push
-
Statement type: