Show HN: Use your OpenAI subscription to create audiobooks
pdftomp3.comI thought this would mean I could use my subscription, as OpenAI/Codex supports this kind of authentication flow, and it's very easy to integrate with that as a service, and users login with the OpenAI authentication flow, or via device codes.
Instead this asks for an API key, which is very different from "Use your OpenAI subscription" and to be honest, I'm not sure how anyone who has a OpenAI subscription could mistake this for such. Has this even been tested once?
Maybe I missed something obvious, I had a five second look and closed it when it seemed to be outright intentionally misleading.
edit: i guess this explains it, its sorta half half
Your subscription will be used for:
document processing (via MCP)already paid by your subscription
Your API key will be used for: generating speechOpenAI charges per usageMuch less interesting.
But worth noting that it took me a few hours to make, and it's all vibecoded, meaning the code is likely not that nice, and that you could probably replicate it fairly easily just from my description above.
If I make it OS I'll share it on Show HN.
A good protip - tell an agent to rewrite the article slightly for better listening flow. Some subtle changes in sentence structure etc can make listening way more pleasant.
https://blog.nawaz.org/posts/2024/Apr/reading-articles-via-p...
I use the TTS on Google Cloud. It's effectively free.
For example, these audiobook generators runs fully offline. https://github.com/Finrandojin/alexandria-audiobook https://github.com/senigami/audiobook-studio.pinokio https://github.com/topics/audiobook-generator
That should be everybody!
There are standard practices for delegating responsibility, never ever be pasting API keys into websites.
https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fx...
Send me your data and I will check and see if anyone else has it
Now I have your data but that doesn't count
Thanks for listing the model you're using, I've not really done any TTS stuff and this sounds like a fun thing to spin up.
I'd love to see an actual result what it can do
Via MCP more voices are available (all OpenAI and Gemini voices, depending on which api key you use).
My experience is that gathering and testing with that corpus was about 30% of the overall effort. I have not yet gathered the motivation to tackle pdf: it’s more of a layout format than a text format. Not just tables but multi-column layouts and similar oddities leave a pile of imperfect heuristics in their wake.
Multi-lingual support is even worse. I was working with arabic script in pdf years ago and they don’t even capture the encoded text, just rendering instructions due to the high number of ligatures. I don’t know if things have improved since then.
For those interested in better voices, you can try and let me know.
https://apps.apple.com/app/apple-store/id6758897526?pt=12810...
For a wrapper around costly LLM providers.
For a result one could get with voicebox for free.
I was trying to use TTS to regenerate some old audiobooks and getting names pronounced correctly is pretty hard unless the model supports something like SSML.
Source: https://github.com/p2r3/convert
https://pdftomp3.com/published/player.html?publication_id=6a...
Or look into open source tts models with liberal commercial licenses
Generally I'd stay away from the site/project/repo in the OP and just do your own research on this (because the OP site is vibe coded in a sleazy way that's unnecessarily used car salesman-y and doesn't offer anything you couldn't just do better yourself with one codex or chatgpt prompt)
Edit: to be clear there's a lot of different tts providers, they probably all offer tts you can use commercially, you can look at benchmarks for the providers and then the specific TOS
https://www.youtube.com/watch?v=WAeHgE94rVo
I've since added character ages (child to supercentenarian voices, consistent relative to their base adult voice), crowd chants (2 to 100 people works flawlessly), case sensitivity for character aliases (to help detect quotation attributions), custom phonetics, and English speaking characters can have a variety of accents applied. Will soon have Chatterbox driving the novel's narration. Screenshot:
https://i.ibb.co/GffgfnCL/narrating.png
It's self-hosted, fully local, based on software having permissive licenses and open weights. Runs on a lowly 8GB NVIDIA T1000 (and 96 GB of RAM).
What is cool is to then make an AI Skill of it. I've done that and I now can ask on my phone to generate a podcast, or a reading of a page, or small audiobook (very long ones takes few hours) that is sent back to me and I can listen while doing another activity
I did something better a while ago, a fully offline webapp:
https://github.com/mstsirkin/bookworm-whisper
my friends are all using it. Better how:
- outputs an apple audio book, for use on mobile
- tracks pages so chapters so you know which page you are
- handles notes, tables
- supports epub and pdf
- keepalive so you can switch tabs while it is processing
Hope this helps.