>>107848869
This is a one line shellscript on a Mac.
pandoc -f epub -t txt ebook.epub | say -o audiobook.aiff && ffmpeg -i audiobook.aiff audiobook.mp3
Linux has "espeak" to do something similar to "say" that dumps to WAV rather than AIFF.
An AI would get you a more realistic narrator voice but that's it.