Uses whisper AI to transcribe speach from video and audio files. Also accepts urls for youtube, rumble, bitchute, clear file, etc.
Project description
transcribe-anything
Input a local file or url and this service will transcribe it using Whisper AI into subtitle files and raw text.
Uses whisper AI so this is state of the art translation service - completely free. 🤯🤯🤯
If you install from PYPI then by default it will install the CPU version only.
To enable the GPU version, please clone this repo and run install_cuda.sh
. Please note that
whatever torch version you have will be purged.
Usage
> pip install transcribe-anything
> transcribe_anything <YOUTUBE_URL>
# Outputs the srt, vtt and txt files in YOUTUBE_URL/out.vtt
> transcribe_anything <LOCAL.MP4/MP3/WAV>
# Same but in LOCAL/out.vtt ...
Build Status
Install dev
Works for Ubuntu/MacOS/Win32(in git-bash) This will create a virtual environment
> cd transcribe_anything
> ./install_dev.sh
# Enter the environment:
> source activate.sh
The environment is now active and the next step will only install to the local python. If the terminal
is closed then to get back into the environment cd transcribe_anything
and execute source activate.sh
Required: Install to current python environment
pip install transcribe-anything
- The command
transcribe_anything
will magically become available.
- The command
transcribe_anything <YOUTUBE_URL> > out_subtitles.txt
- -or-
transcribe_anything <MY_LOCAL.MP4/WAV> > out_subtitles.txt
Tech Stack
- OpenAI whisper
- yt-dlp: https://github.com/yt-dlp/yt-dlp
- static-ffmpeg
Testing
- All tests are run by
tox
, simply go to the project directory root and run it.
Versions
- 2.0.3: GPU support is now added. Run the
install_cuda.sh
script to enable. - 2.0.2: Minor cleanup of file names (no more out.mp3.txt, it's now out.txt)
- 2.0.1: Fixes missing dependencies and adds whisper option.
- 2.0.0: New! Now a front end for Whisper ai!
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
Hashes for transcribe-anything-2.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfee050f4d488f83c2f5f88d48bbe7161bc85a57139451249fe681517f04f998 |
|
MD5 | 54c8499cc7bdffe8debd86232c58d94e |
|
BLAKE2b-256 | 03d398878146a578ea0cb5f7d78ddcfa02b83fb420469ed78fc255af5efabba4 |
Hashes for transcribe_anything-2.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0029ef9c373208eb0a0f122aac5d59dc1cd6c2271ca10dc7678832272f9c49e3 |
|
MD5 | f656eae32c274ecb2e43425b5701e83a |
|
BLAKE2b-256 | 2d26466ba79719a383d5d0dc58b8f570f68d75f1fcffbae55563c4229903bf80 |