Skip to content

Open , Decrypt and convert a range of pages in a pdf to a .mp3 audiobook using pyttsx3 audio library

License

Notifications You must be signed in to change notification settings

hunterhearst/audConv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdf to audiobook Converter

Introduction

The project is aimed at enhancing pdf to audiobook processing , It makes use of a few python packages to open , decrypt and save content as an audiofile

Libraries Utilized

PyPDF2
pikepdf
pyttsx3
os

How to use

  • Download the commandLine.py file and run it in your desired folder from your terminal
  • Install the required packages
  • Run the file in your terminal

Command line

To learn the whole syntax :

 ~$ aud -help

To convert a single pdf to audiobook, The syntax of the command

   ~$ aud .conv -voiceOption filename.pdf startPage:endPage

For Instance :

  ~$ aud .conv -f mydocument.pdf 3:5

Voice options

  • Male option : Use '-m' as the voice option
     ~$ aud .conv -m mydocument.pdf 3:5
  • Female option : Use '-f' as the voice option
    ~$ aud .conv -f mydocument.pdf 3:5

Upcoming Features :

  • Ability to convert all pdfs to audiobooks in a directory at once
  ~$ aud .conv -f all
  • Convert a pdf from a specific start point to end :
 ~$ aud .conv -f mydocument.pdf 3:END
  • Convert from the beginning to a specific page
  ~$ aud .conv -f mydocument.pdf START:5

Finally:

  • You probably want to add to this project, So why not fork and create a pull request ?

About

Open , Decrypt and convert a range of pages in a pdf to a .mp3 audiobook using pyttsx3 audio library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%