youtube_to_text
yt2t is a command-line tool and extracts audio from YouTube video urls or a local audio file and converts it into text. It supports multiple languages and can optionally ignore YouTube transcripts.
Features
- Extract audio from YouTube video URLs or a local audio file
- Convert audio to text using local openai-whisper library
- Support for multiple languages
- Option to ignore YouTube transcripts and download youtube audio file directly
Installation
To install this project using pipx, use the following command:
from PyPI
pip install yt2t
from GitHub
git clone https://github.com/JFK/youtube_to_text.git
cd youtube_to_text
pipx install .
Usage
To convert audio files to text, run the following command:
yt2t [YouTube video URL or local audio file path] [-l language] [-ig]
Example:
yt2t https://www.youtube.com/watch?v=example -l
Options:
-l : Specify the language of the audio (default is ja). -ig : Ignore YouTube direct transcripts and generate text from a provided audio file.
License
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Metadata
Release files for yt2t 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yt2t-0.1.3.tar.gz | 7.6 kB | Without provenance | Details for yt2t-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yt2t-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for yt2t-0.1.3-py3-none-any.whl |
Total release size: 16.2 kB
Release files / yt2t-0.1.3.tar.gz
| Download URL | yt2t-0.1.3.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98f975129783000e6b959d9ccbbacf87c225e4842e413f1ee3d6fca1b4a600be
|
|
BLAKE2b-256 checksum How to use checksums |
885b802e83922f177360c951a87e4312653e976ca2ea6e32f45d1250f4b7faa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.0rc1
|
Release files / yt2t-0.1.3-py3-none-any.whl
| Download URL | yt2t-0.1.3-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b45ef5f3ec31cf34dce500a09e111b76b6d9fa5a997e8968f7bdaaa3b46d49f9
|
|
BLAKE2b-256 checksum How to use checksums |
83e6d25190b4b82b4f5d8b0c55a31b453762007a7d580068d2d8b6d9e192822a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.0rc1
|
Security for yt2t 0.1.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.