Skip to content

Jsmatta/pdf_to_audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF to Audio

This program turns the text in a pdf file to audio.

It takes arguments in the terminal to determine what happens to the files.

Arguments:

    document.pdf                    # Play audio directly
    document.pdf -a                 # Play audio (explicit)
    document.pdf -s                 # Save as MP3
    document.pdf -s -o my_book.mp3  # Save with custom name
    document.pdf -r 150 -v 0.8      # Custom rate and volume

The program utilizes the libraries:

  • GTTS For the text to speech
  • PyPDF2 To read the contents of the pdf file.
  • pathlib to Handle the file paths

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages