Skip to content

Creating Audio Files from PDF Files with flexibility to choose voice type, speaking speed, and volume

License

Notifications You must be signed in to change notification settings

apurvasijaria/pdf-to-audiofile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF to Audio File

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.

Notes

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

Motivation

To read PDFs on the go!

Logic

Converting PDF to text using python package pdfplumber. Using pyttsx3 to convert text to speech and saving as an mp3 file.

Voice Properties

pyttsx3 allows choosing between Male or Female voice, Speed of speaking and Volume. Modification can be done in the code.

Sample PDFs

First 10-15 pages from Ebooks have been used to test. PDFs of Books downloded from Free Ebook websites:

Time to covert ~40 pages of PDF to audio files ~ 5mins

Resources

About

Creating Audio Files from PDF Files with flexibility to choose voice type, speaking speed, and volume

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages