Skip to main content

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.txt
    • transcribe_anything <LOCAL.MP4/WAV> out_subtitles.txt
  • Example (api): from transcribe_anything.api import bulk_transcribe urls = ['https://www.youtube.com/watch?v=Erk4_jFDjzQ'] def onresolve(url, sub): print(url, sub) def onfail(url): print(f'Failed: {url}') bulk_transcribe(urls, onresolve=onresolve, onfail=onfail)

Quick start

Optional: Create a virtual python package

  • Works for Ubuntu/MacOS bash or win32 git-bash
  • mkdir transcribe_anything
  • cd transcribe_anything
  • Download and install virtual env:
    • curl -X GET https://raw.githubusercontent.com/zackees/make_venv/main/make_venv.py -o make_env.py
    • python 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_anything will magically become available.
  • transcribe_anything <YOUTUBE_URL> out_subtitles.txt
  • -or- transcribe_anything <MY_LOCAL.MP4/WAV> out_subtitles.txt

Tech Stack

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

transcribe-anything-1.2.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

transcribe_anything-1.2.0-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file transcribe-anything-1.2.0.tar.gz.

File metadata

  • Download URL: transcribe-anything-1.2.0.tar.gz
  • Upload date:
  • Size: 6.8 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

Hashes for transcribe-anything-1.2.0.tar.gz
Algorithm Hash digest
SHA256 20defc32d12e35b8af8004367e5a2ef81b6375f227907bbddaa9b945095fda31
MD5 1fd9bbb6cb5286828a1572fa38508034
BLAKE2b-256 27dc520dc2bd1e73352621ce06ec1a2a02f0d4dbfedc2f63eab581fc694be77b

See more details on using hashes here.

File details

Details for the file transcribe_anything-1.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: transcribe_anything-1.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.0 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

Hashes for transcribe_anything-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29d0db47d2bdc51006f0767de56c90cce192efc6a62f1c6544434e261cbd0e89
MD5 982e67f0dd7f78e7d9d5b89120419d0c
BLAKE2b-256 17b2c45ff3d54d1a4dc786cf4fc5f6eb697f21da0c36d538c89be215d39b1207

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