Skip to main content

pyaudiobook is a python package which converts pdf to mp3 files

Project description

Works best with English pdf

Usage : pip install pyaudiobook

import pyaudiobook

pyaudiobook.Pdf2Mp3(input_file_path,lang="en",out_path = output_file_path,out_name=output_file_name,num_threads=1)

lang, out_path, out_name, num_threads are optional.

Default Language : English

Default Output Path : User Home Directory

Default Output File Name : Output_timestamp

Default Number of Threads : Total Cores Available

eg :

convertor = pyaudiobook.Pdf2Mp3("sample.pdf",lang="hi",out_path = '~/MyBooks',out_name='History of India',num_threads=8)

convertor.convert()

output_filename = convertor.output #For Output File

Or just to extract text from PDF

txt = convertor.generateText()

Language Supported

{
    "af": "Afrikaans",
    "ar": "Arabic",
    "bn": "Bengali",
    "bs": "Bosnian",
    "ca": "Catalan",
    "cs": "Czech",
    "cy": "Welsh",
    "da": "Danish",
    "de": "German",
    "el": "Greek",
    "en": "English",
    "eo": "Esperanto",
    "es": "Spanish",
    "et": "Estonian",
    "fi": "Finnish",
    "fr": "French",
    "gu": "Gujarati",
    "hi": "Hindi",
    "hr": "Croatian",
    "hu": "Hungarian",
    "hy": "Armenian",
    "id": "Indonesian",
    "is": "Icelandic",
    "it": "Italian",
    "ja": "Japanese",
    "jw": "Javanese",
    "km": "Khmer",
    "kn": "Kannada",
    "ko": "Korean",
    "la": "Latin",
    "lv": "Latvian",
    "mk": "Macedonian",
    "ml": "Malayalam",
    "mr": "Marathi",
    "my": "Myanmar (Burmese)",
    "ne": "Nepali",
    "nl": "Dutch",
    "no": "Norwegian",
    "pl": "Polish",
    "pt": "Portuguese",
    "ro": "Romanian",
    "ru": "Russian",
    "si": "Sinhala",
    "sk": "Slovak",
    "sq": "Albanian",
    "sr": "Serbian",
    "su": "Sundanese",
    "sv": "Swedish",
    "sw": "Swahili",
    "ta": "Tamil",
    "te": "Telugu",
    "th": "Thai",
    "tl": "Filipino",
    "tr": "Turkish",
    "uk": "Ukrainian",
    "ur": "Urdu",
    "vi": "Vietnamese",
    "zh-CN": "Chinese",
}

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

pyaudiobook-0.0.5.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

pyaudiobook-0.0.5-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file pyaudiobook-0.0.5.tar.gz.

File metadata

  • Download URL: pyaudiobook-0.0.5.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.6.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for pyaudiobook-0.0.5.tar.gz
Algorithm Hash digest
SHA256 4a6d4faf894027751f0761d218a3ec091116d0e904315a1eab26e6452fcd7b81
MD5 5e8f4eb98d79ff2587ff5b77b1803bbf
BLAKE2b-256 5430ae1924e20d522f7eee34bf5cf1d28e6c773ffd8f90219349dd857e64e7a9

See more details on using hashes here.

File details

Details for the file pyaudiobook-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyaudiobook-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.6.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for pyaudiobook-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8d9fefb6b9499a871c715066da4daa8b0ea92aa1ff4db80755d01b7304733bf7
MD5 21f45cde92b0044eebe2d2c2bfe35a18
BLAKE2b-256 194a5160e632453c5f27cfb08cd8e685d4e1580f4821caab2838c516b26a5a0b

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