Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

astianmuchui/pdf-audiobook-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

197 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdf to audiobooks 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

A Minimal pdf to audiobook converter

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors