bitwalt / VideoTranslate

Download, Transcript, Translate, Generate Speech a Youtube Video
MIT License
3 stars 2 forks source link
python translation youtube

Video Translator

A Python application for translating videos from one language to another, with a Streamlit web interface for easy interaction.

Features

Screenshot

ScreenShot

Installation

Using Poetry (Recommended)

  1. Install Poetry if you haven't already:

    curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
  2. Install dependencies:

    poetry install

Using pip

pip install -r requirements.txt

Environment Variables

Create a .env file with the following API keys:

OPENAI_API_KEY=your_openai_key
DEEPL_API_KEY=your_deepl_key
HUGGINGFACE_API_TOKEN=your_huggingface_token

Running the Application

Using Poetry

poetry run streamlit run app/video_translator.py

Using Docker

make start

Or manually:

docker-compose build --no-cache
docker-compose up -d

The application will be available at http://localhost:8501

Configuration

The application can be configured through config.py. Key settings include:

Dependencies

License

MIT License - See LICENSE file for details

Contributing

Feel free to open issues or submit pull requests. Please ensure tests pass before submitting PRs.

TODO