gpttsrt
一个使用gpt3.5来批量翻译srt字幕文件的工具,用来批量翻译公开课字幕
名字: gpt_translate_srt -> gpttsrt
使用方法说明
PYPI 安装(推荐)
pip install gpttsrt
源码安装
clone 本项目到本地
git clone https://github.com/Seeker0472/gpttsrt.git
cd到项目目录
cd gpttsrt
安装
pip install -e .
配置文件
example: gpttsrt.conf
path_in = './input' # 输入文件夹
path_completed = './completed' # 将翻译完成的源文件移动到这个文件夹
path_out = './output' # 输出文件夹
api_key = '' # openai的api key
mirror_url= '' # openai的api url,如果不适用镜像服务就不用填
max_thread = 10 # 最大线程数(同时翻译多个文件,提高速度), 默认为10
line_per_request = 10 # 每次请求翻译的行数, 默认为10
运行
gpttsrt -c --config gpttsrt.conf
TODO
- 多线程优化翻译速度
- 优化翻译结果,检测翻译结果是否异常
- 优化翻译结果,使用gpt给长句断句
- 优化翻译结果,使用使用whisper模型给断句后的句子标记时间
Metadata
Release files for gpttsrt 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gpttsrt-0.0.2.tar.gz | 6.8 kB | Without provenance | Details for gpttsrt-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpttsrt-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for gpttsrt-0.0.2-py3-none-any.whl |
Total release size: 15.3 kB
Release files / gpttsrt-0.0.2.tar.gz
| Download URL | gpttsrt-0.0.2.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b639fad22d7e5efa1bc280b2a1db9d9fedd369677a62fa85070187d72bed7ffa
|
|
BLAKE2b-256 checksum How to use checksums |
aedf57f83918f1aaab0d342b77469b0bcab3de485a3266ee2f6d5138b6a4bdd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / gpttsrt-0.0.2-py3-none-any.whl
| Download URL | gpttsrt-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7786fcc8b2d38236f63d4e329f85569f0f64a1f922fc8f29dc0133c89af35e6c
|
|
BLAKE2b-256 checksum How to use checksums |
d6d0084bbf7a7a4c8de57723a6a24ed0033ec02fdb99cc2513decc0986c5fdc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for gpttsrt 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.