News for hackers. Stuff that matters.
Re:Show HN: Offline audiobook from any format with one CLI c... by C-Loftus on Monday October 07, 2024 @12:25PM (#41767657)
Thank you for the feedback and I'm sorry you had those issues. I cannot replicate at the moment on Ubuntu 24.04 but will check back on this. I presume it is something simple going wrong with how I am getting the home directory in golang and checking if the path exists.

Your feedback on ebook-convert is very valid. I can take a look at breaking it up. (Granted I am not sure how much of a lift that would be)

Re:Show HN: Offline audiobook from any format with one CLI c... by C-Loftus on Tuesday October 08, 2024 @06:03PM (#41782254)
Issues should be fixed now in the latest release.
Re:Show HN: Offline audiobook from any format with one CLI c... by archargelod on Tuesday October 08, 2024 @10:44PM (#41783981)
Can confirm that everything is fixed. Thanks for the update!
Re:Show HN: Offline audiobook from any format with one CLI c... by andai on Saturday October 12, 2024 @10:26AM (#41819300)
The intention seems to have been to skip running ebook-convert if the input file is already a text file, but it runs it anyway. So I recompiled it to not do that.

https://gist.github.com/avelican/8602b417e810f8dd4e31e8e3fbb...

...at which I did some more digging and realized that (for my purposes anyway -- operating on txt files), QPA can simply be replaced with piper itself!

    cat book.txt |  piper --model [model] --output_file book.wav
(which I found kind of funny)

Re: the ebook-convert dependency, I wonder if there are any feasible alternatives? My first thought was pandoc, which is ~140MB, but I guess that's smaller than Calibre's ~1400MB (!!!).