This package creates audiobooks from PDF files
Project description
PDF to Audio Converter
Convert PDF documents to spoken audio files using Google's Text-to-Speech service through the gTTS library and PyPDF2 for reading PDFs. This tool is ideal for creating audiobooks or for enhancing accessibility.
Features
- Convert PDFs to audio: Turn any PDF document into an audio file.
- Multi-language support: Uses Google's Text-to-Speech which supports various languages.
Installation
Install from PyPI with pip:
pip install pdfToAudio
Requiriments
pip install gTTS pypdf PdfReader
Quick Start
Here is how you can use the pdf_to_audio function to convert a PDF document into an audio file:
from pdfToAudio.pdf_to_audio import pdf_to_audio
pdf_path = 'path/to/your/pdf_file.pdf'
output_audio_path = 'path/to/your/audio_file.mp3'
language = 'en'
pdf_to_audio(pdf_path, output_audio_path, language)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdfToAudio-1.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for pdfToAudio-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f0ab321e3d337bc331bf36751e1f3617591837fd2f893d46f5fe0d61dca412 |
|
MD5 | 48d68157c983da2a0101cef7396ff3ab |
|
BLAKE2b-256 | aff33206efe60d6999cc35e6207d15b816649f84767895958815140154c965bd |