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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file translate_subtitle-0.1.3-py3-none-any.whl.
File metadata
- Download URL: translate_subtitle-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1460a69f680dbea1beb914e34b4936859adf724981a6733b590ca451799e9bf
|
|
| MD5 |
36135214253a5c2615a3050c6213ee07
|
|
| BLAKE2b-256 |
ad88c13fbc8250acb37de6966d4a0ecb5827c4e20bc3781d3c66f16b92aa77cd
|