Skip to content

milesverse/Audiobook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Audiobook PDF Reader

This is a simple Python application that converts PDF files into speech using text-to-speech (TTS) technology. It uses tkinter for file selection, PyPDF2 for PDF reading, and pyttsx3 for offline TTS.

Features

  • Select any PDF file from your computer.
  • Reads the entire PDF aloud, page by page.
  • Notifies if a page is empty or cannot be read.
  • Works offline (no internet required).

Requirements

Installation

Install the required packages using pip:

pip install pyttsx3 PyPDF2

Usage

Run the script:

python main.py

A file dialog will appear. Select the PDF you want to listen to. The application will read the PDF aloud.

Code Overview

  • Prompts the user to select a PDF file.
  • Reads each page and extracts text.
  • Uses TTS to read the text aloud.
  • Prints a message if a page is empty or unreadable.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages