Skip to content

a pdf-audiobook local (low quality) script, 3 openai TTS scripts for pdf or txt to audiobook conversion with chapters.

License

Notifications You must be signed in to change notification settings

Feed-dev/pdf-to-audiobook-script

Repository files navigation

PDF to Audiobook Script

This project contains Python scripts that convert PDF documents into audio content.

Requirements

To run these scripts, you need to have the following Python packages installed:

  • PyMuPDF
  • pyttsx3
  • python-dotenv
  • openai
  • PyAudio
  • pdfplumber
  • pydub

You can install these packages using pip:

pip install -r requirements.txt

Usage

  • Create .env file for openai api key
  • Depending on the script u have to provide text or pdf path in the script.
  • When u use the script with chapters u have to set the pages manually.
  • U can change the voice as per openai docs. https://platform.openai.com/docs/guides/text-to-speech

About

a pdf-audiobook local (low quality) script, 3 openai TTS scripts for pdf or txt to audiobook conversion with chapters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages