Convert PDF text to audio effortlessly!
The PDF to Audio Converter is a web application built with Flask that allows users to convert text content from PDF files into audio format. Whether you're on the go or prefer listening over reading, this tool makes it easy to turn PDF documents into audio files for convenient listening.
- Upload PDFs: Simply upload your PDF files to get started.
- Choose Scanning Options: Select from various scanning options such as scanning the entire document, selecting a page range, or scanning for specific keywords.
- Generate Audio Files: Convert PDF text into speech using text-to-speech technology and download the audio files (in MP3 format) for listening.
- User-Friendly Interface: Intuitive interface makes it easy for users to navigate and convert PDFs to audio effortlessly.
- Upload your PDF file.
- Choose scanning options (if desired).
- Click the "Convert to Audio" button.
- Download your audio file and enjoy listening!
To run the PDF to Audio Converter locally:
- Clone this repository.
- Open your terminal.
- Install the required dependencies
pip install pyttsx3 PyPDF2 flask
. - Go to the path where the main.py file is located.
- Run the Flask application
python app.py
. - Access the application in your web browser
http://localhost:5000
(by default).
- Flask: Python web framework for building the application.
- PyPDF2: Library for extracting text from PDF files.
- pyttsx3: Library for text-to-speech conversion.
- HTML/CSS: Front-end design and styling.
- JavaScript: Front-end interactivity and dynamic behavior.
This project is licensed under the MIT License.
- Contributions are welcome! Feel free to submit issues or pull requests.