Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gnehs/subtitle-translator
Translate subtitle using ChatGPT
https://github.com/gnehs/subtitle-translator
Last synced: 6 days ago
JSON representation
Translate subtitle using ChatGPT
- Host: GitHub
- URL: https://github.com/gnehs/subtitle-translator
- Owner: gnehs
- License: mit
- Created: 2023-03-04T07:07:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-25T16:57:00.000Z (about 1 year ago)
- Last Synced: 2025-01-13T19:13:44.844Z (13 days ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 352
- Watchers: 4
- Forks: 46
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - subtitle-translator - Translate subtitle using ChatGPT (NLP)
- awesome-chatgpt-api - subtitle-translator
README
# subtitle-translator
Translate subtitle using ChatGPT
## Features
- Translate subtitle using ChatGPT `gpt-3.5-turbo`
- Support multiple languages
- Translation according to the preceding and following sentences
## How to use
- Electron
- You can download the electron app from [here](https://github.com/gnehs/subtitle-translator-electron/releases)
- Node.js
- Get your own API key from [here](https://platform.openai.com/account/api-keys)
- Rename `config.example.json` to `config.json` and fill in your API key and target language.
- Put your subtitle file in `src` folder
- Run `npm install` to install dependencies
- Run `node index.js` to start
- After the translation is done, you can find the translated file in `res` folder## Supported subtitle extensions
- `.srt`
- `.vtt` WebVTT## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.