News for hackers. Stuff that matters.
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 (!!!).

There are no comments on this comment yet.