9 ms·
Abogen – Generate audiobooks from EPUBs, PDFs and text
- amaccuish 1y agoAmazing, but I'm personally waiting for the one that generates a well formated ePub from a PDF.
- nikolayasdf123 1y agocan I choose any voice? would love to read software engineering books in voice of Morgan Freeman, or maybe even better, Scarlett Johansson
- hulitu 1y agoWhy not Stephen Hawking ?
- hajimuz 1y agoYeah, could be a buff like 500% brain supercharge.
- throwup238 1y agoBecause the Stephen Hawking voice spends a quarter of its time joking/complaining how it never got a Nobel Prize.
- pyman 1y agoThe voice of Mickey Mouse would be nice.
- beboplifa 1y agono, but this will allow you to: https://github.com/cpttripzz/Chatterblez https://github.com/cpttripzz/Chatterblez
- TOGoS 1y agoThe demo video doesn't seem to have any audio in it! At least none that either ffmpeg or whatever Firefox uses can recognize.
- huseyinkeles 1y agoI can hear it on safari
- Daunk 1y agoSame on my end, no audio in the video.
- jamilton 1y agoSame here, but it worked when I opened it in Chrome. What a weird error - you would think that playing an embedded mp4 with audio wouldn't differ from browser to browser.
- mnmalst 1y agoI was surprised by this as well at first but thinking about it, it would make sense when they use an audio codec which is not supported on the target system. In that case the video can still play but the audio can't. I wasn't aware tho that audio can be disabled separately.
- ertian 1y agoYeah, I've run a local Kokoro instance, and it doesn't work with Firefox. This uses Kokoro under the hood.
- noisem4ker 1y agoThe demo clip is static and has the Kokoro output encoded as the audio track. It's not Kokoro running and generating it in your browser in real time.
- noisem4ker 1y agoIt's probably due to the unusual sound format, 24kHz mono PCM, and the fact that it was somehow forced into a WebM container, which only supports Vorbis and Opus officially. It looks like the author created it using the "higher quality" ffmpeg command line, except for the "webm" final extension, producing the opposite of what's described as "an MP4 file that's compatible with more devices". https://github.com/denizsafak/abogen/tree/main/demo#for-higher-quality-but-larger-video-mp4 https://github.com/denizsafak/abogen/tree/main/demo#for-high...
- 8s2ngy 1y agoI've been using Kokoro TTS with the CLI app, audiblez, mentioned in the "Similar Projects" section of the README. The model is fast and delivers impressive quality for its small size. Some issues I have faced, however, are: a) It doesn't distinguish periods at the end of sentences from the dots in abbreviations such as "Mr." or "Mrs." The result is an awkward pause between "Mr." and the name. b) It doesn't handle ellipses well. c) Words are pronounced the same way regardless of context.
- rkagerer 1y agoThe Mr. / Mrs. thing feels like it would be a pretty easy fix, at least to eliminate a lot of the more common cases.
- hombre_fatal 1y ago^ A thought that everyone has had at one point when processing human text before learning the hard way (like end of sentence detection). :P The difference is that even weak LLMs are good at magically doing this, so I wonder what the problem is for the TTS mentioned above.
- leobg 1y agoKokoro is small and fast because all the text -> phoneme conversion is done by “dumb code” and only the phoneme -> sound part is done using a neural net.
- fudged71 1y agoLook into SSML phoneme tags. Some TTS supports it. That was you can use a powerful LLM to fix these issues ahead of TTS
- beboplifa 1y agoI fixed that here: https://github.com/cpttripzz/audiblez https://github.com/cpttripzz/audiblez The main problem with Kokoro is how flat and lifeless it sounds. But it is very fast. I prefer Chatterbox tts but it is around 20 times slower and will not work without a GPU
- anotherpaul 1y agoDoes it turn it into spoken word or an audiobook? Because good audiobooks often have voice actors that read the characters with different emphasis and dialects. I imagine tools like chatgpt could do this for a few sentences but what about an 8-20 hour audiobook? I think there are still basic hurdles to take before we can go epub to audiobook in a quality that can compete with current state of the art. Or am I missing something?
- jamilton 1y agoElevenlabs has a feature for a "full cast"-type generation, where different characters will get different voices. It's certainly not automatically sensitive to dialect though. It's probably possible with current systems to do though. I believe there are TTS systems that can use context/prompting to change emphasis and other speech qualities, though I'm not sure how reliably.
- floppyd 1y agoI tried Kokoro for voicing blog posts and articles and wasn't impressed to be honest. Right now Gemini 2.5 Flash TTS is a much more capable system with generous free limits (about 10 minutes per generation and about 90 minutes per day). Voices are not very consistent between generations, but for shorter pieces it's not a big deal (but will obviously be for books)
- ekianjo 1y agoKokoro is fine for TTS, but it lacks emotion. But for a model of this size, that is kind of given.
- robin_reala 1y agoIronic given the name: kokoro is Japanese for heart or sentiment.
- SirHumphrey 1y agoI played with ebook generation a bunch and find that (at least for English text) around 1B is needed to get something usable emotionally (Chatterbox is 0.5B, Orpheus is 3B).
- scotty79 1y agoI think the quality of the voice is super important for audiobooks and I think we are just closing in on the required quality with TTS. I played a bit with Eleven labs voices and while they aren't bad when I tried make them read fragment of a text that I wrote, it sounded chaotic, boring, quite terrible, for anything longer than a sentence or two. But when I tried their v3 voices which they are currently in the process of rolling out, the same text sounded consistent, emotional, engaging, simply amazing. I think we are just crossing vocal uncanny valley.
- porker 1y agoStrong agree that voice quality (and voice acting) is important. I listen to a lot of fiction audiobooks, and will listen to the end of a middling book with a good narrator, but if the narration is flat or out of keeping with the characters I'll stop after a chapter or two.
- dsign 1y agoNice! As an aside, while this tool can be used to create an audiobook from a book you have in text format, for your private consumption, having an author employ something like this to create files for distribution is extremely risky, even if they acknowledge its use and intend those files to only be available on their website. Indie authors struggle a lot to promote their works, and the new normal is that potential readers, the polite ones[^1], use the slightest hint of AI usage to discard their title and move on...as they are entitled to, since there are so many books. I in particular have started to hire voice actors that have good acting skills and good diction but for whom English is their second language, or it's their first language but they speak something else at home; sometimes I even ask them to go a notch up with their accents. It helps with the non-AI recognition, and it also increases the appeal of the book for people who would like to try out something new. Once, I did an audition for a project and was pleasantly surprised with how much life people from around the Mediterranean basin were able to inject into their renderings, compared with people from Britain and North America. [^1] Impolite readers set the town on fire, and then go about and spread that fire to neighboring towns, for good measure.
- baxtr 1y agoI am big time user of Amazon’s WhisperSync feature. With that feature I can simultaneously read the book and listen to it. This is especially helpful when you’re on the go but still want to have a visual now and then or highlight text for later. The problem is that many books don’t offer that feature. There is a built-in read function now in the kindle app, but it’s crap. So, if you ask me, I’d prefer a good human-written book with an additional AI voice on top to enable that feature for me.
- em-bee 1y agoyeah, i don't see the problem. using a generated voice, no matter how, only affects the audiobook, not the actual book. if i don't like the voice i can ignore it. i am part of a group that occasionally gets email from new authors wanting us to review their books. and some of them sound really interesting, and i'd love to read them, but i can only do audiobook, so i would be very happy if the author went through the effort to generate an audiobook that i could listen to.
- leke 1y agoHow big is this app?
- poulpy123 1y agoperfect, I was looking for something like that ! is it gui only, or is there an api available ? I would like to be able to share a link or a text from my phone and get back the audio
- logicprog 1y agoI've been using this to try to make audiobooks out of various philosophy books I've been wanting to read, for accessibility reasons, and I ran into a critical problem: if the input text fed to Kokoro is too long, it'll start skipping words at the end or in the middle, or fade out at the end; and abogen chunks the text it feeds to Kokoro by sentence, so sentences of arbitrary length are fed to Kokoro without any guarding. This produces unusable audiobooks for me. I'm working on "vibe coding" my own Kokoro based tkinter personal gui app for the same purpise that uses nltk and some regex magic for better splitting.
- gavinray 1y agoI use "kokoro-tts" CLI, which has better chunking/splitting. https://github.com/nazdridoy/kokoro-tts https://github.com/nazdridoy/kokoro-tts It generates a directory of audio files, along with a metadata file for ebook chapters You have to use m4b-tool to stitch the audio files together into an audiobook and include the chapter metadata, but it works great: https://github.com/sandreas/m4b-tool https://github.com/sandreas/m4b-tool I've been meaning to write a post on this workflow because it's incredibly useful
- logicprog 1y agoI'll look into this! But I have to say I'm a bit attacked to the little app I've ended up habing AI make for myself lol. It's so cute, and its mine!
- RicoElectrico 1y agoI just can't stand how non-deterministic many deep learning TTSes are. At least the classical ones have predictable pronunciation which can be worked around if needed.
- ethan_smith 1y agoYou could try implementing a character count limit per chunk instead of sentence-based splitting. A hybrid approach that breaks at sentence boundaries but enforces a maximum chunk size of ~150-200 characters would likely solve the word-skipping issue while maintaining natural speech flow.
- frumiousirc 1y agoThis needs to be run from an environment where `pip` is available as that tool is used during the running of the abogen app. Using `uv tool run abogen` gets you started but then the app hangs at model install time. `uv venv && uv pip install pip && source .venv/bin/activate && abogen` lets it run properly. Otherwise, it's a nicely packaged GUI. Well done! I tried a PDF and the UI to select pages or sections is good and generation is fast on my laptop's GTX 1650. The result is an .ogg audio and .ass subtitle file. Played with mpv allows listening and reading along in the terminal. Only issue I have with the result is that visual line breaks from the PDF are preserved resulting in long pauses "randomly" in the middle of sentences. This greatly interrupts understanding of the audio. Edit: enabling the skipping of single newlines helps!
- nnashrat 1y agoI just converted a 110 page book to wav in about an hour with a RTX 4060. I didn't have the newlines enabled though so it was pretty useless. Enabling makes this pretty awesome. af_heart is a great voice to me while af_jessica I find annoying. That is the main issue I have with audiobooks , the randomness of liking the voice actor or not almost matters as much as what the book says for me. I knew this day was coming soon and I really am blown away. I have got so use to audiobooks that it is hard to actually sit and read a full book for me. I have about 20 books to convert that would never have a market to bother having someone read the book and in a voice I really like. Incredible.
- gman83 1y agoI love audiobooks, but I'm a stickler for good narration. I've stopped listening to plenty of audiobooks because I didn't like the narrator. I guess it will be a long time before I can use something like this.
- NBJack 1y agoI recall one series where R. C. Bray had been doing the narration for several books, then for undisclosed reasons they replaced him with another narrator. The drop in quality was so bad I eventually gave up trying to finish the series (though admittedly the author(s) didn't seem to be helping much with the content). Some narrators, like Wil Wheaton, are so entertaining to me I actively search by what they have voiced. In general, I have to agree the narrator can make or break a series.
- ratelimitsteve 1y agoComing from the other side of this, I've had a good narrator sell me entire series in the past. The Grim Noir Chronicles is the first that comes to mind (idk if anyone remembers the terrible sitcom Perfect Strangers but he played Balki and in real life he has a buttery smooth baritone voice that I just adore) and anything that Soundbooth Theater touches, partly for Jeff Hays and partly because of the full-cast adaptations they do that feel like old school radio plays to me. I see no reason to use this over existing text to speech features. If i just want to mechanically turn patterns of light into patterns of vibration there's non-AI tech that will do that for free, and AI narration doesn't do what human narration does yet.
- criddell 1y agoWhat are some of your favorite audiobooks?
- crazygringo 1y ago> I've stopped listening to plenty of audiobooks because I didn't like the narrator. I'm with you on this, but my reaction is the opposite -- I'm wondering if there are some books I couldn't stand to listen to, that now I could with a nice neutral narration voice? Instead of the weird untrained voice with weird vocal tics that was the official narration?
- xtracto 1y agoI assume it doesn't work well for books that have non-text structured elements (code, diagrams, etc)or images (which is expected). I wonder, is there some open source NN that can consume PDF pages and produce a "pure prose" version of it. Say, a page with mixed text and an image of a car engine would be output to the text and then a detailed description of the image, or what it is depicting.
- numb7rs 1y agoYou will want to reconsider the name if you plan to have a presence in Australia or New Zealand. "Abo" is an ethnic slur similar in offensiveness to the N-word.
- yepyip 1y agoEveryone has a gimmick these days. If abos are that sensitive, let them not have access to solutions—no need to worry about them.
- someperson 1y agoThe project presumably is a portmanteau of "audio book generator". I agree that the project need not be renamed to remove the single syllable that may be an obscure slur, especially since every syllable may be an obscure slur in some language and you can't expect somebody to learn them all just to avoid them. But there was no need to use that syllable as a slur.
- dumbasrocks 1y agoHaving zero cultural sensitivity like this is incredibly embarrassing
- isaacremuant 1y agoDon't worry. Australia will probably ban it for some reason anyway. Better to be free. Btw, Don't look into the name of a famous python formatter or you might be offended.
- dumbasrocks 1y ago"Abo" carries the same cultural impact as "Paki" in the UK, and isn't a word in its own right, let alone a very commonly used one. Completely different kettle of fish. Seeing as you want to derail this into some free speech rant - it's just distasteful. You really think anybody who wants legislative control over freedom of speech in Australia gives a damn about Aboriginals getting offended?
- m_sahaf 1y agoI imagine a pipeline between Calibre-Web[0] and audiobookshelf[1] going through Abogen, where Calibre-Web supplies the books, Abogen generates the audio version of it, and Audiobookshelf serves them. Great solution for the hearing impaired. [0] https://github.com/janeczku/calibre-web https://github.com/janeczku/calibre-web [1] https://github.com/advplyr/audiobookshelf https://github.com/advplyr/audiobookshelf
- lynx97 1y agoDAISY would be a desirable output format.
- dumbasrocks 1y agoWould you call a network packet generation tool Pakigen?
- u_sama 1y agoAudioBOokGENerator -> abogen One should stop asuming everyone is versed in all slangs (or slurs for that matter) existing in all languages in the world. The author seems to have a Turkish name, thus I will assume he is Turkish and so I would guess he didnt think much about the name.
- leansensei 1y ago"Abo" in German means "subscription" (from the French abonnement). Show some cultural sensitivity about these languages.
- vismit2000 1y agoHow does this compare with the lightweight kitten TTS model which was recently on HN? https://news.ycombinator.com/item?id=44807868 https://news.ycombinator.com/item?id=44807868
- obfuscator 1y agoMy biggest selling point for this would be, that the volume is probably the same throughout the whole text. I am listening to audiobooks to fall asleep, and many voice actors go from very quiet to loud in conversations. It may be good narration, but it's sometimes to quiet to understand, so I need to increase the volume only to be woken up by some loud lines later. So I imagine generated audiobooks to be good in that regard. Another option would be to have a "normalize volume" setting at audible, or other services.