srtranslate
is a Python-based tool designed to automate the translation of subtitles.
Leveraging LLM translation via llama_cpp_python
, it offers high-quality translations across multiple languages.
- Automatic Translation: Support for multiple languages.
- Customizable Translation Engines: Integrates with various LLMs.
- Format Preservation: Maintains the original subtitle format, ensuring timing and text formatting are kept intact.
- CLI Support: Easy-to-use command-line interface for quick translations and script integrations.
Clone this repo.
pip install
Translate a subtitle file from English to French:
srtranslate translate --input /path/to/input.srt --output /path/to/output.srt --source en --target fr
srtranslate
is released under the MIT License. See LICENSE for details.