Learn how to create a Audiobook from any pdf using Python.
We are using two libraries to build Audiobook using Python
-
pyttsx3
pyttsx3 is a text-to-speech conversion library in Python. Unlike alternative libraries, it works offline, and is compatible with both Python 2 and 3.pip install pyttsx3
-
PyPDF2
A Pure-Python library built as a PDF toolkit. It is capable of extracting document information splitting documents page by page merging documents page by page cropping pages merging multiple pages into a single page encrypting and decrypting PDF files and more!pip install PyPDF2