Hacker News new | ask | show | jobs
by andai 619 days ago
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 (!!!).