Using this code you can translate any file written in spainish to english and can also hear the text in loud, so it can help you to convert it to a audio book
To read PDF file using Python pip install pypdf2 To Read text (Text to speech) pip install pyttsx3.
To translate the file to any desired languague use pip install googletrans and then import Translator.
This code can read all the printable text from a PDF file/ Book