Git Product home page Git Product logo

subtitly's Introduction

SUBTITLY

This Python project automates the process of adding subtitles to videos. It includes various scripts to convert videos to audio, split audio into chunks, perform speech recognition, and generate subtitles in SRT/VTT format.

GitHub issues GitHub forks GitHub pull requests GitHub Repo stars GitHub contributors

Installation

Prerequisites

  • FFmpeg: This project requires FFmpeg for video to audio conversion.
    • Windows: Download and install from FFmpeg's official website.
    • macOS: Install using Homebrew with brew install ffmpeg.
    • Linux: Install using your distribution's package manager, for example sudo apt-get install ffmpeg for Debian/Ubuntu.

Python Dependencies

To install the necessary dependencies, run the following command in your terminal:

pip install -r requirements.txt

Setting Up the Environment

Before running the script, you need to set up the REPLICATE_API_TOKEN. Get your API token from the Replicate website, and then set it as an environment variable.

On Unix-based systems, you can set the environment variable like this:

export REPLICATE_API_TOKEN='your_token_here'

For Windows, use the following command in Command Prompt:

set REPLICATE_API_TOKEN=your_token_here

Usage

To use this tool, simply run the main.py script:

python main.py

Follow the on-screen instructions to select a video file and specify any required settings or options.

Acknowledgments

This project utilizes several external libraries including pydub, replicate, and tkinter. Thanks to the developers and contributors of these libraries.

License

This project is released under the MIT License.

subtitly's People

Contributors

lilmistake avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.