Skip to content

A simple piece of python code that can read out a pdf for you.

Notifications You must be signed in to change notification settings

ShyamKumar1/Audio_Book_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Audio Book Generator


Description:

Reading book sometimes seems booring so let's make a small piece of code to read PDF for us.

Installations:

We need the following packages to read and convert the text to speech from the PDF

pip install pyttsx3 -> This package helps us to convert the text into speech
pip install pyPDF3 -> This package helps us to Read, Write and Merge the PDF files

And you can check out the remaining code here

Some common errors:

  • Xref table not zero-indexed if you get this error then include strict = False in the PdfFileReader()
  • Make sure that the pdf file is in same directory as the project file.
  • The PDF should be good so that the code can extract the text from the file