Awesome
中文 | English
🤖 AI Subtitle Translation ai.cgsv.top
The main function is to translate local subtitle files or Bilibili/YouTube subtitles into the language of your choice using GPT-3.5 as the translation engine.
Function Details
- Support uploading local SRT/ASS format subtitle files and grabbing Bilibili/YouTube subtitles
- Translate part of the text and display the translation in real-time:
- Support exporting original/translated subtitles to local (currently only support SRT format)
- Translation engine supports GPT-3.5 or Google Translate
- Support mutual translation of all common languages
How it works
- Using OpenAI GPT-3.5 API as the translation engine
- Developed with NextJS and deployed on Vercel with Vercel Edge functions
- Using Upstash Redis for caching and rate limiting
Notices
- Please try to use your own OpenAI key for more stability (this project will not store user keys)
- Translating complete subtitle files requires a large number of tokens, please pay attention to token usage
- Translating complete subtitle files may take a long time, please do not close the current browser window
Run locally
After copying this project to your local machine, create your own .env file based on the .example.env file and complete the required environment variables.
Then, run the following command in the terminal. Once successful, you can preview the project at http://localhost:3000.
npm run dev
One-Click Deploy
Contact Me
Email: cgsv@qq.com
<details> <summary><h2>Support</h2></summary> <div align="left"> <img height="360" src="./public/we1.png" /> <img height="360" src="./public/zfb1.png" /> </div> </details><a href="https://www.buymeacoffee.com/cgsv" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>