A piece of code to listen to books with some voice commands on your linux pc.
PyAudio, the cross-platform audio input/output stream library is needed for this to work.
$ sudo apt-get install python-pyaudio python3-pyaudio
$ pip install PyAudio
$ pip install PyAudio
You can quickly download the dependencies using the command given below.
pip install -r requirements.txt
python main.py --pdf 'pdf_name.pdf' --single --page 10
python main.py --pdf 'pdf_name.pdf' --multi
python main.py --pdf 'storybook.pdf' --multi --from_page 8
python main.py --pdf 'chapter2.pdf' --multi --from_page 45