Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yt2text-1.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

yt2text-1.0-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file yt2text-1.0.tar.gz.

File metadata

  • Download URL: yt2text-1.0.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

Hashes for yt2text-1.0.tar.gz
Algorithm Hash digest
SHA256 d695509991b41b150f77ad466b0dada8552468925db78b5115ae4c1e2b63b408
MD5 3df54ac1c7a79394a69bdf24ee9cfd2e
BLAKE2b-256 350e84eb2563c5f218a6be7d86be0bfa6ea709f03bb06dc8b9ade69e2789add3

See more details on using hashes here.

File details

Details for the file yt2text-1.0-py3-none-any.whl.

File metadata

  • Download URL: yt2text-1.0-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

Hashes for yt2text-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d5c881a43e744cda69686bbb2199c8f25d2d1821d357eb0eb874b747e68b2c5
MD5 efd800f71ce9cd5d665520e9cb9ce5b1
BLAKE2b-256 e89504061a19738be4655c418509268ba6a791997462a4aee101e8459cfa082b

See more details on using hashes here.

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