Creating Audio Files from PDF Files with flexibility to choose voice type, speaking speed, and volume. All the PDFs to be converted to Audio to be kept in pdf_files folder, after conversion the audio files are stored in audio_files folder.
The requirements.txt
file should list all Python libraries that your notebooks depend on, and they will be installed using:
pip install -r requirements.txt
To read PDFs on the go!
Converting PDF to text using python package pdfplumber
. Using pyttsx3
to convert text to speech and saving as an mp3 file.
pyttsx3
allows choosing between Male or Female voice, Speed of speaking and Volume. Modification can be done in the code.
First 10-15 pages from Ebooks have been used to test. PDFs of Books downloded from Free Ebook websites: