Convert any PDF file into an audiobook (MP3) using Python and Flask.
This project uses pyttsx3 for offline Text-to-Speech, so you don't need an internet connection.
- Upload PDF and convert to audiobook (MP3)
- Offline Text-to-Speech with
pyttsx3 - Supports large PDF files
- Cross-platform: Windows, macOS, Linux
project_root/
│── run.py
│── app/
│ │── __init__.py
│ │── routes/
│ │── main.py
│── uploads/ # Uploaded PDFs
│── output/ # Generated MP3 files
cd pdf-audiobook-converter # Create virtual environment (optional but recommended) python -m venv .venv source .venv/Scripts/activate # Windows # or source .venv/bin/activate # Linux/macOSpip install -r requirements.txt
python run.py
- Open the web app in your browser.
- Upload any PDF file.
- Click "Convert to Audio".
- Download the generated MP3 audiobook.
- Flask
- PyPDF2
- pyttsx3
<h2>License</h2>
<p>MIT License</p>