Skip to content

GowthamSelvaraj123/pdf-to-audiobook-converter-flask-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📖 PDF to Audiobook Converter

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.

Features

  • Upload PDF and convert to audiobook (MP3)
  • Offline Text-to-Speech with pyttsx3
  • Supports large PDF files
  • Cross-platform: Windows, macOS, Linux

Project Structure

project_root/
│── run.py
│── app/
│   │── __init__.py
│   │── routes/
│       │── main.py
│── uploads/      # Uploaded PDFs
│── output/       # Generated MP3 files
    

Installation

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/macOS

Install dependencies

pip install -r requirements.txt

Run the App

python run.py

Open in browser

http://127.0.0.1:5000/

Usage

  1. Open the web app in your browser.
  2. Upload any PDF file.
  3. Click "Convert to Audio".
  4. Download the generated MP3 audiobook.

Dependencies

  • Flask
  • PyPDF2
  • pyttsx3

<h2>License</h2>
<p>MIT License</p>

About

Convert any PDF file into an audiobook (MP3) using Python and Flask. Features offline Text-to-Speech using pyttsx3 and works on Windows, macOS, and Linux. Supports large PDFs and produces a single merged MP3 audio file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages