Skip to main content

This package converts a pdf file to audiobooks

Project description

PDF TO AUDIOBOOK CONVERTER

This is a simple package that helps you in creating audiobooks (in the form of .mp3) from a pdf file.

The import statement

Use this import statement to import all the functions of the library:

from pdftoAudiobook import *
Function use example: pdftoAudiobook.pdf_to_audiobook(pdfFileName)

PDF TO AUDIOBOOK converter functions

There are two functions in this package:

pdf_to_audiobook: This function parses through the entire pdf document, converts it into speech and creates a single .mp3 file. This function takes one string argument, the path of the pdf file that is to be converted.
pdf_to_audiobook_per_page: This function parses through the entire pdf document and creates a one .mp3 file per page. This function also takes one string argument, the path of the pdf file that is to be converted.

Future scopes

  1. Create a function that parses through a text file and converts that into an audiobook
  2. Provide another alternatives for converting text-to-speech. Currently, it uses gTTS library for this purpose.

Limitations

  1. Since gTTS library is used for text-to-speech conversion, it requires internet connection while running the scripts
  2. The pdf file is converted to speech as-is, no modifications are made to the original format. Due to this, improperly formatted file may give bad output. However with a standard text format, this will work properly.
  3. Since API is used to convert the text to speech, it takes a long time to convert if the number of pages is more

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdfToAudioBookConverter-0.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdfToAudioBookConverter-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pdfToAudioBookConverter-0.0.2.tar.gz.

File metadata

  • Download URL: pdfToAudioBookConverter-0.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.3

File hashes

Hashes for pdfToAudioBookConverter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 04c25e3e2530319d7a066e5538c76b9f5827dca36c5d61c39e35bbe0757fce3c
MD5 be568e59eab0e64eba82d976d101e24d
BLAKE2b-256 8474354770bae836c39ee30d2db95ab3c8a0120f01acea0f184865b7c425e860

See more details on using hashes here.

File details

Details for the file pdfToAudioBookConverter-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pdfToAudioBookConverter-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.3

File hashes

Hashes for pdfToAudioBookConverter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c008b001eac599985cad02dc3cbf4727a1ba70f0a3a960d1bce4ef3b97eaa8e
MD5 9b3a3c2a63f1c26f944f3b77fa86bd27
BLAKE2b-256 7fec643342658820916396e20bf4ea2c4cd545d3e237cfb8b5a326267aad4968

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page