read any audio book using 12 lines of python
To read PDF file using Python
pip install pypdf2
To Read text (Text to speech)
pip install pyaudio
pip install pyttsx3
If installing pyaudio
fails, perform the steps in answer: https://stackoverflow.com/a/42934991/1592801 and then repeat
brew install portaudio
brew link portaudio
pip install pyaudio
This code can read all the printable text from a PDF file/ Book