Skip to main content

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.

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)

Source distribution for yt2t 0.1.3
File Size Uploaded
yt2t-0.1.3.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yt2t 0.1.3
File Interpreter ABI Platform
yt2t-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.1

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