Live data from Hacker News

Abogen – Generate audiobooks from EPUBs, PDFs and text

github.com

81–85 of 85 posts

Re: Abogen – Generate audiobooks from EPUBs, PDFs and text

#81

Would you call a network packet generation tool Pakigen?

AudioBOokGENerator -> 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.

Re: Abogen – Generate audiobooks from EPUBs, PDFs and text

#83

I'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 guard…

Hey, can you share an example book or text so I can test it? Regarding "abogen chunks the text it feeds to Kokoro by sentence", that's not quite correct, it actually splits subtitles by sentence, not the chunks sent to Kokoro. This might be happening because the "Replace single newlines with spaces" option isn’t enabled. Some books require that setting to work correctly. Could you try enabling it and see if it fixes…

> Hey, can you share an example book or text so I can test it?

I was running into issues with this one: https://theanarchistlibrary.org/library/kevin-carson-studies..., this one: https://files.libcom.org/files/Accelerate%20-%20Robin%20Mack... (converted to plain text using MinerU, double checked to make sure the text was clean).

> Regarding "abogen chunks the text it feeds to Kokoro by sentence", that's not quite correct, it actually splits subtitles by sentence, not the chunks sent to Kokoro.

Ah, that's odd. So I don't know why abogen'd be doing the weird fading out and skipping words thing then when my tool (https://github.com/alexispurslane/kokoro-audiobook-reliable/) isn't.

> This might be happening because the "Replace single newlines with spaces" option isn’t enabled. Some books require that setting to work correctly. Could you try enabling it and see if it fixes the issue?

I tried that, as well as doing it myself, and it didn't seem to help.

Re: Abogen – Generate audiobooks from EPUBs, PDFs and text

#84

I'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 guard…

You 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.

That's precisely what I'm doing. I'm splitting by sentences, and then for each sentence that's still too long, I split them by natural breakpoints like colons, semicolons, commas, dashes, and conjunctions, and if any of /those/ are still too long, I then break by greedy-filling words. Then I do some fun manipulation on the raw audio tensors to maintain flow.

Re: Abogen – Generate audiobooks from EPUBs, PDFs and text

#85

Earlier quoted context omitted.

Hey, can you share an example book or text so I can test it? Regarding "abogen chunks the text it feeds to Kokoro by sentence", that's not quite correct, it actually splits subtitles by sentence, not the chunks sent to Kokoro. This might be happening because the "Replace single newlines with spaces" option isn’t enabled. Some books require that setting to work correctly. Could you try enabling it and see if it fixes…

> Hey, can you share an example book or text so I can test it? I was running into issues with this one: https://theanarchistlibrary.org/library/kevin-carson-studies... , this one: https://files.libcom.org/files/Accelerate%20-%20Robin%20Mack... (converted to plain text using MinerU, double checked to make sure the text was clean). > Regarding "abogen chunks the text it feeds to Kokoro by sentence", that's not quite co…

I tested the files that you mentioned and found no issues. There are no missing words. Please check your files.
Post reply on HN