CLI tool for generating video subtitles
Top 53.4% on sourcepulse
AutoSub is a command-line interface (CLI) tool designed to automatically generate subtitle files (SRT, VTT, TXT) for any video. It targets users who download video content and require subtitles, offering a convenient solution for creating them using open-source speech-to-text engines.
How It Works
AutoSub leverages Mozilla DeepSpeech or Coqui STT for speech-to-text inference. It first uses FFmpeg to extract audio from the video, ensuring a 16kHz sampling rate compatible with DeepSpeech. Then, it employs pyAudioAnalysis to segment the audio based on silence, creating smaller, manageable files. Inference is performed on each audio segment, and the resulting text is compiled into subtitle files.
Quick Start & Requirements
pip install .
(after cloning the repo and optionally activating a virtual environment).requirements-gpu.txt
and ensure appropriate CUDA version.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 year ago
Inactive