lamm-mit/PDF2Audio
lamm-mit/PDF2Audio has 1,384 GitHub stars and 178 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 06:19 UTC. Last push 2025-04-18.
This code can be used to convert PDFs into audio podcasts, lectures, summaries, and more. It uses OpenAI's GPT models for text generation and text-to-speech conversion. You can also edit a draft transcript (multiple times) and provide specific comments, or overall directives on how it could be adapted or improved.
What you can do
- Upload multiple PDF files
- Choose from different instruction templates (podcast, lecture, summary, etc.)
- Customize text generation and audio models
- Select different voices for speakers
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalConvert any document into an audio podcast, lecture, summary and others
This code can be used to convert PDFs into audio podcasts, lectures, summaries, and more. It uses OpenAI's GPT models for text generation and text-to-speech conversion. You can also edit a draft transcript (multiple times) and provide specific comments, or overall directives on how it could be adapted or improved.
Features
- Upload multiple PDF files
- Choose from different instruction templates (podcast, lecture, summary, etc.)
- Customize text generation and audio models
- Select different voices for speakers
- Iterate on the draft via specific or general commments, and/or edits to the transcript and specific feedback to the model for improvements
Use in Colab
Local Installation
Follow these steps to set up PDF2Audio on your local machine using Conda:
Clone the repository:
git clone https://github.com/lamm-mit/PDF2Audio.git cd PDF2AudioInstall Miniconda (if you haven't already):
- Download the installer from Miniconda website
- Follow the installation instructions for your operating system
- Verify the installation:
conda --versionCreate a new Conda environment:
conda create -n pdf2audio python=3.9Activate the Conda environment:
conda activate pdf2audioInstall the required dependencies:
pip install -r requirements.txtSet up your OpenAI API key: Create a
.envfile in the project root directory and add your OpenAI API key:OPENAI_API_KEY=your_api_key_here
Running the App
To run the PDF2Audio app:
Ensure you're in the project directory and your Conda environment is activated:
conda activate pdf2audioRun the Python script that launches the Gradio interface:
python app.pyOpen your web browser and go to the URL provided in the terminal (typically
http://127.0.0.1:7860).Use the Gradio interface to upload a PDF file and convert it to audio.
How to Use
- Upload one or more PDF files
- Select the desired instruction template
- Customize the instructions if needed
- Click "Generate Audio" to create your audio content
Access via 🤗 Hugging Face Spaces
Example result
Your browser does not support the audio element.Note
This app requires an OpenAI API key to function.
Credits
This project was inspired by and is based on the code available at https://github.com/knowsuchagency/pdf-to-podcast and https://github.com/knowsuchagency/promptic.
@article{ghafarollahi2024sciagentsautomatingscientificdiscovery,
title={SciAgents: Automating scientific discovery through multi-agent intelligent graph reasoning},
author={Alireza Ghafarollahi and Markus J. Buehler},
year={2024},
eprint={2409.05556},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2409.05556},
}
@article{buehler2024graphreasoning,
title={Accelerating Scientific Discovery with Generative Knowledge Extraction, Graph-Based Representation, and Multimodal Intelligent Graph Reasoning},
author={Markus J. Buehler},
journal={Machine Learning: Science and Technology},
year={2024},
url={http://iopscience.iop.org/article/10.1088/2632-2153/ad7228},
}
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,875 starspublic-apis/public-apis
A collective list of free APIs
497,120 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,926 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,168 stars