Giter Site home page Giter Site logo

hiteshsaai / pdf-to-audoibook-converter Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 21.94 MB

Built software to convert any pdf book to audio with less noise ratio and faster speed.

Python 100.00%
pet-project pdf-to-audiobook python3 cloud-vision-api python

pdf-to-audoibook-converter's Introduction

PDF to Audio Book Converter

Introduction

Created a PDF to audio book converter. The purpose of this project is to make time more utilizable while they are in their early morning walking or in a transit to work through public transport or even while you are travelling. You can convert your e-books or a reserch paper to audio and listen to it rather than using a physical laptop or a phone in hand to read those books.

How it works

We are extracting the text from the pdf document and later we are cleaning the text to align it in proper formate. This converted text in string format is being passed on to Google Computer Vision API to convert it to speech in real-time.

How to use?

  • Download the repository
  • Open a new terminal
  • Create a new conda environment for the project
    conda create -n pdf-to-audio python=3.6
    conda activate pdf-to-audio
  • Create a Google cloud account for free and get your Privat key API for text-to-speech and store in the PDF-to-audoibook-converter directory.
    • For reference take a look at this Google Cloud Text-to-speech
    • Open you pdf_to_audio.py file and in line no. 68 replace and add your Private API key location (which is your local directory).
  • Go to the PDF-to-audoibook-converter repository in termial and do,
    pip install -r requirements.txt
  • Run python pdf_to_audio.py and a gui will open to select the PDF file which you wanted to be converted to audio.
  • Select the pdf file which you want to convert to audio.
  • Then you will get your pdf file converted to a audio book.

Note

If you find difficult to use google computer vision or you want to make it simple you can use gTTS library to convert the text(string) to audio.

To install the library use the follwing command,

  • pip install gTTS
  • Refer this gTTS documentation for implementing string to speech conversion.

Disclaimer: Convertion of text to string will take more time with this tool.

ENJOY LISTENING TO YOUR BOOKS!!

pdf-to-audoibook-converter's People

Contributors

hiteshsaai avatar hiteshsaainew avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

saivarshithgr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.