Code from Anders webinar (26 Nov 2020). A quick tutorial to build a CLI application that read a pdf book out loud.
You can use this code as the MVP and consider building/adding feature to your application as suggested below
pip install -r requirements.txt
Note: This project use pdftotext
, please check pdftotext
documentation for its OS specific dependencies
Check --help
for detail usage
python main.py --help
- Convert PDF to text: pdftotext
- Python toolkit for working with databases: SQLAlchemy
- Python CLI framework: Click
- Python Text-to-Speech library: Pyttsx3
- Python library for printing nice looking table to console: python-tabulate
- Database migration tool: alembic
- Functionality for storing the last read page
- Functionality to continue from the last read page
- Functionality to start reading from a specific page
- Functionality to change voices
- Functionality to automatically detect book's language and choose the suitable voices according to the detected language
- And more...