Skip to main content

A tool to translate subtitle files using DeepSeek API.

Project description

subtitle-translator

How to Use:

usage: translate_subtitle [-h] [-o OUTPUT_FILE] [-l TARGET_LANG] [--apikey APIKEY] [-b BATCH_SIZE]
                          input_file

Translate Subtitle to Target Language

> translate_subtitle subtitle.srt
> translate_subtitle -l zh-CN subtitle.srt
> translate_subtitle -l zh-CN -o translated.srt subtitle.srt
> translate_subtitle --apikey=<YOUR_APIKEY> subtitle.srt

Or you can put APIKEY in environment variable:

export DEEPSEEK_API_KEY=<YOUR_APIKEY>    # for linux
# set DEEPSEEK_API_KEY=<YOUR_APIKEY>     # for windows
translate_subtitle -l zh-CN  subtitle.srt

How to Install:

Use pip install subtitle-translator Install the package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

translate_subtitle-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file translate_subtitle-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for translate_subtitle-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b18adfd481d1f3c1a6113f8172417b4ecc77edd142524b1cda03223b7a89a5c4
MD5 5a3c2492c70cb46f38104bd528929988
BLAKE2b-256 2e49e655a8546b68a30af2ef9a9511d73dc970630c34bc9ec74b7d867ba24419

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