Skip to main content

Auto-generates subtitles for any video or audio file

Project description

# Autosub
### Auto-generated subtitles for any video

Autosub is a utility for automatic speech recognition and subtitle generation. It takes a video or an audio file as input, performs voice activity detection to find speech regions, makes parallel requests to Google Web Speech API to generate transcriptions for those regions, (optionally) translates them to a different language, and finally saves the resulting subtitles to disk. It supports a variety of input and output languages (to see which, run the utility with `--list-src-languages` and `--list-dst-languages` as arguments respectively) and can currently produce subtitles in either the SRT format or simple JSON.

### Installation

`pip install autosub`

### Usage

$ autosub -h
usage: autosub [-h] [-C CONCURRENCY] [-o OUTPUT] [-F FORMAT] [-S SRC_LANGUAGE]
[-D DST_LANGUAGE] [--list-formats] [--list-src-languages]

positional arguments:
source_path Path to the video or audio file

optional arguments:
-h, --help show this help message and exit
Number of concurrent API requests to make
-o OUTPUT, --output OUTPUT
Output path for subtitles (by default, subtitles are
saved in the same directory and name as the source
-F FORMAT, --format FORMAT
Destination subtitle format
Language spoken in source file
Desired language for the subtitles
--list-formats List all available subtitle formats
--list-src-languages List all available source languages
--list-dst-languages List all available destination languages

### License


Project details

Download files

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

Source Distributions (10.6 kB view hashes)

Uploaded source

autosub-0.3.tar.gz (7.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page