Day 90’s project is “PDF to Audiobook”. The usage for this extensive, with this, a lot can be done. The instruction for this is to simply convert PDF to audiobook, there are multiple packages that can be used for this:
- PyPDF2 and pdfminer (pdfminer.six) which extract text from PDF files. I selected pdfminer.six
- gTTS which converts text to audio
- playsound which reads the mp3 out loud.
This project is not hard, it’s just requires a bunch of googling. But the result is not bad (to my taste). The other thing is, I didn’t go with the “GUI” version, since the point of this exercise is NOT the pretty selection, a good scripting should work.
Lastly, the idea originally was to do some http(s) requests, but since there’s already a package for this, we didn’t even have to bother with the requests.