No.
I found a relatively easy way to convert text to speech, but the resulting audio files are just too mechanical. It is a 100% native Linux solution, since I won't use WINE.
Code:
#!/bin/bash
# Dependencies:
# sudo apt install libttspico-utils festival festvox-us-slt-hts
# sudo apt install ./festvox-us-slt-hts_0.2010.10.25-3_all.deb
# sudo apt install libttspico-utils festival
# The .deb package is from the debian repos which should be compatible
# with Ubuntu 16.04. Later Ubuntus have it in their repo.
# Input file is from txt created from epub using calibre tool:
# ebook-convert input.epub output.txt
ROOT=${1/%.txt/}
# Provided as part of the Festival TTS engine
text2wave "$1" -o "$ROOT.wav"
ffmpeg -i "$ROOT.wav" -codec:a libmp3lame -qscale:a 6 "$ROOT.mp3"
rm "$ROOT.wav"
Using X11 select-paste (left mouse to select; center mouse to paste), some thing like cat < | text2wave | mpv as an xdotool command might work. That's a bunch of stdin and stdout redirection. I didn't verify that text2wave or mpv support this redirection, but most shell commands do. I don't have a text2wave capable system up right now.
Perhaps this will be sufficient for someone?
Bookmarks