/translate-epub-book-by-openai

translate epub book by the openai gpt-3.5-turbo api , like chatgpt translate function

Primary LanguagePythonMIT LicenseMIT

translate epub books by openai api

translate epub books Using AI translate, the translation is not perfect, but it is very interesting. Welcome to pr .

image

ready

  1. OpenAI api key
  2. epub books
  3. python3.8+

how to use

  1. pip install -r requirements.txt
  2. run this shell: python3 make.py --book_name ${book_name} --openai_key ${openai_key}

attention

  1. the openai api key is not free, you can apply for it on the official website

thanks

this project is based on the yihong's projects and I change it for myself. Batch translation is faster and less fee , suitable for those who do not pursue the perfect format .Delete the function which is not used. It is geared more toward programmers now than everyone else.