This Python script converts a PDF file into an audiobook using text-to-speech (TTS) technology. It utilizes the PyPDF2 library to extract text from each page of the PDF and the pyttsx3 library for text-to-speech conversion.
- Python 3.x
- pyttsx3
- PyPDF2
- tkinter (for file dialog)
- Clone this repository to your local machine using
git clone https://github.com/haroonmaqbool/pdf-audiobook-generator.git. - Install the required dependencies using
pip install pyttsx3 PyPDF2.
- Run the script
pdf_audiobook_generator.py. - Use the file dialog to select the PDF file you want to convert into an audiobook.
- The script will start reading the PDF, converting each page into speech.
- Ensure that your system has Python 3.x installed along with the required dependencies.
- Depending on the length and complexity of the PDF, the conversion process may take some time.
- Make sure your system's audio output is configured correctly to hear the generated speech.
This PDF Audiobook Generator script was created by Haroon Maqbool. For any suggestions, issues, or contributions, please feel free to contact Haroon Maqbool via email at [email protected].