https://github.com/pradeep-r04/pdf2audio
The PDF to Audio Converter is a Python-based Streamlit web application that converts the text content of a PDF file into speech. The app allows users to upload a PDF document, extract text from specific pages, and listen to the extracted content using text-to-speech (TTS) technology.
https://github.com/pradeep-r04/pdf2audio
gtts pygame pypdf2 python streamlit
Last synced: about 2 months ago
JSON representation
The PDF to Audio Converter is a Python-based Streamlit web application that converts the text content of a PDF file into speech. The app allows users to upload a PDF document, extract text from specific pages, and listen to the extracted content using text-to-speech (TTS) technology.
- Host: GitHub
- URL: https://github.com/pradeep-r04/pdf2audio
- Owner: pradeep-r04
- Created: 2025-04-03T13:11:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-03T13:40:04.000Z (about 1 year ago)
- Last Synced: 2025-04-09T16:49:30.665Z (about 1 year ago)
- Topics: gtts, pygame, pypdf2, python, streamlit
- Language: Python
- Homepage: https://pdf2audio-pr4.streamlit.app/
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDF to Audio Converter App (Python) 📄🔊
# Overview
The PDF to Audio Converter is a Python-based Streamlit web application that converts the text content of a PDF file into speech.
The app allows users to upload a PDF document, extract text from specific pages, and listen to the extracted content using text-to-speech (TTS) technology.
# Key Features 🚀
✅ Upload PDF – Select a PDF file and extract text from specific pages.
✅ Text-to-Speech Conversion – Uses Google Text-to-Speech (gTTS) to convert text into an audio file.
✅ Audio Playback – Integrated with pygame to play the generated speech directly in the app.
✅ Playback Controls – Start, stop, resume, and reset the audio playback.
✅ Simple and Interactive UI – Built using Streamlit for an easy-to-use interface.
# How It Works 🔧
1. Upload a PDF file using the file uploader.
2. Select the page range from which you want to extract text.
3. The app extracts the text and displays it in a text area.
4. Click "Start Reading" to generate an MP3 file and play the audio.
5. Use Pause, Resume, and Reset buttons to control playback.
# Technologies Used 💻
Python 🐍
Streamlit (Web UI)
PyPDF2 (PDF text extraction)
gTTS (Google Text-to-Speech conversion)
pygame (Audio playback)
# Use Cases 🎯
🔹 Reading academic papers, research articles, or e-books aloud.
🔹 Assisting visually impaired users by converting text to speech.
🔹 Listening to documents while multitasking.
# Deployment 🌍
This app is deployed on Streamlit Community Cloud, making it accessible online without local installation.
# Try It Now!
🚀 Experience the power of PDF-to-Audio conversion with a single click!
https://pdf2audio-pr4.streamlit.app/
# Image

## Connect with me:
| Name | Email | LinkedIn | GitHub | Instagram |
|---------|--------------------|-----------------------------------------------|-----------------------------|-------------------------------|
| Pradeep Singh | [Email](pradeep.singh04r@gmail.com) | [LinkedIn](https://linkedin.com/in/pradeep-singh4) | [GitHub](https://github.com/pradeep-r04) | [Instagram](https://instagram.com/whypradeeep) |