Input a local file or url and this service will transcribe it using Mozilla Deepspeech
Project description
transcribe-anything
Input a local file or url and this service will transcribe it using Mozilla Deepspeech 0.9.3.
- Example (cmd):
transcribe_anything <YOUTUBE_URL> out_subtitles.txttranscribe_anything <LOCAL.MP4/WAV> out_subtitles.txt
- Example (api):
from transcribe_anything.transcribe_anything import bulk_fetch_subtitles urls = ['https://www.youtube.com/watch?v=Erk4_jFDjzQ'] def onresolve(url, sub): print(url, sub) bulk_fetch_subtitles(urls, onresolve=onresolve)
Quick start
Optional: Create a virtual python package
- Works for Ubuntu/MacOS bash or win32 git-bash
mkdir transcribe_anythingcd transcribe_anything- Download and install virtual env:
curl -X GET https://raw.githubusercontent.com/zackees/make_venv/main/make_venv.py -o make_env.pypython make_env.py
- 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_anythingwill magically become available.
- The command
transcribe_anything <YOUTUBE_URL> out_subtitles.txt- -or-
transcribe_anything <MY_LOCAL.MP4/WAV> out_subtitles.txt
Tech Stack
- Mozilla DeepSpeech: https://github.com/mozilla/DeepSpeech
- pydeepspeech: https://github.com/zackees/pydeepspeech
- mic_vad_streaming: https://github.com/hadran9/DeepSpeech-examples/tree/r0.9/mic_vad_streaming
- youtube-dl:
- static-ffmpeg
Testing
- All tests are run by
tox, simply go to the project directory root and run it.
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 transcribe-anything-1.1.1.tar.gz.
File metadata
- Download URL: transcribe-anything-1.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e27c8136319b9cb5f2d92efba21ad2a0d7fc11ce6c6b4344444de701282dc070
|
|
| MD5 |
ba8852cfd93f49b76e93353e873bd07c
|
|
| BLAKE2b-256 |
1ae524c03821ebb81573408eb679be92e00e8ca299fd7a7c2511e5963904574e
|
File details
Details for the file transcribe_anything-1.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: transcribe_anything-1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
542c51f7728ef0802d19d676d0c4405bfbab2a28b966d49285361948ee183c17
|
|
| MD5 |
0be0e8ea7a6ba3aef2ea229aa301138b
|
|
| BLAKE2b-256 |
808ff6b94451b85985f5f525a5a986e46b40e1af5140adf9b0b18ca5721fcd2b
|