Skip to content

dohyeondk/translate-srt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Translate SRT

This is an example implementation for translating .srt files using the ChatGPT API.

Setup

  1. If you don’t have Python installed, install it from here.

  2. Clone this repository.

  3. Install the requirements:

    $ pip install openai
    $ pip install asyncio
  4. Define your API key.

    $ export OPENAI_API_KEY=...
  5. Define your language.

    $ export TARGET_LANGUAGE="Korean"
  6. Obtain the source subtitles and save it as input.srt.

  7. Run the app:

    $ python run.py
    
  8. The translated subtitle file is generated as output.srt.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages