Skip to main content

Add your description here

Project description

SubAuto

License

Description

Freeze code screenshot

Subauto CLI is a command-line application written in Python that automates the process of transcribing, translating, and embedding subtitles in videos. It leverages Google's Gemini AI for translation and OpenAI's Whisper for speech recognition.

Features

  • Automated video transcription using Whisper
  • High-quality translations using Google Gemini AI
  • SRT file generation in both source and target languages
  • Automatic subtitle embedding in videos
  • Concurrent processing support for multiple videos
  • Real-time progress tracking with rich console interface

Table of Contents

Prerequisites

Installation

pip install subauto

Check if installation is complete

subauto --version

If a version is displayed, then SubAuto is installed correctly.

Freeze code screenshot

Usage

Set up Gemini API Key

First, you need to configure your Gemini API key:

subauto set-api-key 'YOUR-API-KEY'

Basic Translation

Translate videos to Spanish (full command):

subauto --directory /path/to/videos --output-directory /path/to/output --output-lang "es"

Or use the short version:

subauto -d /path/to/videos -o /path/to/output -ol "es"

Advanced Usage

Concurrent Processing

Process multiple videos simultaneously by configuring the number of workers:

subauto -d /path/to/videos -o /path/to/output -ol "es" -w 4

Optimize Transcription

Speed up the transcription process by specifying the source language:

subauto -d /path/to/videos -o /path/to/output -ol "es" -il "en" -w 4

Note: If you don't specify the input language, SubAuto will automatically detect it.

Freeze code screenshot

Do you enjoy SubAuto or does it save your time?

Then definitely consider supporting me on GitHub Sponsors or buy me a coffee:

ko-fi

Your support will allow me to allocate time to properly maintain my projects like this.

Contributing

If you want to contribute to this project, please use the following steps:

  1. Fork the project.
  2. Create a new branch (git checkout -b feature/awesome-feature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/awesome-feature).
  5. Open a pull request.

License

This project is licensed under the MIT 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 Distribution

subauto-0.0.4.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

subauto-0.0.4-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file subauto-0.0.4.tar.gz.

File metadata

  • Download URL: subauto-0.0.4.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.23

File hashes

Hashes for subauto-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fac5d1bcdc138c9a71f61f426763a31f5db8b2d40f3c324cdf4ec14979b44081
MD5 9efa2d78c1dd73d9054ff66ee69462ee
BLAKE2b-256 fd21037253d37154cd5b3865fc8bf6cc9977a1658f089818ab6b774e8d88ba3b

See more details on using hashes here.

File details

Details for the file subauto-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: subauto-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.23

File hashes

Hashes for subauto-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4cdbe9aee13b9e6a8253104997a774cd5557625fc2067b44458723c137eaf954
MD5 e924c8ba9fe9e976c4c7930757a28b23
BLAKE2b-256 e6e68fbe85c1af256aa3bf2f86ff276e9e8192b55d0067f997f7966dda5fdbc5

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