Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 875 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 875 Bytes

If anyone would like to build it out—like adding more cleaning options or fixing anything—or clean it up a bit feel free to contribute and submit pull requests.

Simple way to convert PDF into a professional-grade audiobook by using GPT and OpenAI's text-to-speech.

Should work for book PDFs and most others, but some PDFs with unusual formatting may require you to change the cleaning prompt.

I made this for myself but thought I should share it because I've found it useful; maybe it could help people with vision and reading difficulties.

Steps

  1. After cloning repository, navigate to root and install requirements.
pip install -r requirements.txt
  1. Enter your OpenAI API key into config.py. Can also alter cleaning prompt, see config.py

  2. Place desired pdf in root of folder.

  3. Run main.py and follow prompts:

python main.py