Extract text from a YouTube video in a single command, using OpenAi's Whisper speech recognition model
Project description
YT2TEXT
Extract text from a YouTube video in a single command, using OpenAi's Whisper speech recognition model. It doesn't use disk, performs everything in memory.
INSTALL: pip install yt2text
USAGE:
You'll only interact with the get_text function. It takes a YouTube URL as an argument and returns the text as a string.
import yt2text result= yt2text.get_text(YOUTUBE_URL)
OPTIONAL ARGUMENTS: model Set Whisper model (tiny,base,small,medium or large). Check here for details: https://github.com/openai/whisper#available-models-and-languages Defaults to "base" which should be good enough for most cases. The first time you use a model, it will be downloaded first.
verbose Set True to print each step of the process. Defaults to False, it only prints if there is an error.
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 yt2text-1.0.1.tar.gz.
File metadata
- Download URL: yt2text-1.0.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d6a53a7de5d82179e3596a9eae25431ff9e75e66aebe8d88faaaf5c920444d8
|
|
| MD5 |
4b89ee4e5b2105f96aa4e1c85a5a1c71
|
|
| BLAKE2b-256 |
23bdc6bcef5e7aa6a32e98b67bf48cb443034df70398f093e9c3608baf4fe913
|
File details
Details for the file yt2text-1.0.1-py3-none-any.whl.
File metadata
- Download URL: yt2text-1.0.1-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7edb6abfe1cbf5da144a8674379356b665f2da37ce38f37543cfd91ce187bfa
|
|
| MD5 |
22e0c14ce72b7dd4a13389649883d803
|
|
| BLAKE2b-256 |
8845e492ac4320cb8d5d020c51136f4173af0f521fb989c36f8460e9c0b7486a
|