PD

PDF to Podcast – Convert Any PDF into a Podcast Episode

Hacker News

PDF to Podcast – Convert Any PDF into a Podcast Episode

Hi HN! I'm stoked to share a project I've been working on called PDF to Podcast. It's a free, open-source tool that automatically converts PDF documents into engaging, informative podcast-style audio content using large language models and text-to-speech tech. Inspiration: The idea for this project came from the NotebookLM demo at Google I/O, where they showcased generating audio dialogue from uploaded PDFs and other sources. However, that audio feature hasn't been publicly released yet, and I wanted to challenge myself to build something similar using existing tools and APIs. How it works: The user uploads a PDF The tool extracts the text and feeds it into Google's Gemini Flash language model Gemini Flash generates a natural, engaging podcast dialogue script based on the key information in the document This script is then converted to audio using OpenAI's text-to-speech API The user can listen to the generated "podcast episode" and read along with the transcript I chose to use Gemini Flash for the language model because it's good at writing high-quality prose while being fast and cheap. We use OpenAI's TTS API to then bring the dialogue to life. Under the hood, it's built with Python, FastAPI, Gradio for the web UI, and my own library, promptic, for calling the LLM and getting structured output. The code is open-source and available on GitHub. Apart from the tool's practical utility, I'm hoping this project can serve as a helpful example for others looking to build applications on top of large language models. It demonstrates an end-to-end flow from document intake to language model usage to audio output, with a simple web interface on top. I would love to hear any feedback or ideas from the HN community! I think there's a lot of potential to expand on this concept and make all sorts of written content more accessible and engaging through audio conversion. Let me know what you think :)

Share card

Actual performance

118points
42comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: model, google, user · Missing: mac, agents, macos
98%98% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: gemini · Missing: supports, reddit linkedin, podcasting
84%84% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: exist, existing, ide · Missing: https docs, excited, just released
59%59% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface · Missing: plus, platform, intuitive
48%48% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: google · Missing: mobile apps, ios, personal
39%39% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: audio · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Co
Convert a Subreddit into a Podcast68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Convert a Subreddit into a Podcast

Hacker News4
Co
Convert a Subreddit into a Podcast67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Convert a Subreddit into a Podcast

Hacker News3
Pd
Pdf.to – Convert PDF's to and From53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pdf.to – Convert PDF's to and From

Hacker News1
We
Well Made podcast45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Well Made podcast

Hacker News2
Fi
Find your next favourite podcast29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Find your next favourite podcast

Hacker News4
A
A podcast for socialist techies45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A podcast for socialist techies

Hacker News4
Ba
Banter – Podcast Together45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Banter – Podcast Together

Hacker News1
Se
Settled Afar Podcast40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Settled Afar Podcast

Hacker News6
Wa
Wannabe Entrepreneur Podcast45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wannabe Entrepreneur Podcast

Hacker News2
Po
Podcast of me trying to become an entrepreneur37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Podcast of me trying to become an entrepreneur

Hacker News1