Quote:
Originally Posted by Quoth
I was thinking of investigating using PC to turn epubs into mp3s. I think on Linux there is a way to have the speech synthesis go to a file. There seems to be one OS wide text to Speech installed by default and options for maybe 3 others on Mint via Debian.
|
There are a thousand options, well, three or four at least (espeak-ng, epeak, festival, flite, pico), plus speech-dispatcher to tie them all together. speech-dispatcher has no way to record to file, so you'd need to get it to emit to the speakers and use PulseAudio monitoring to record what's being played on those (about three lines of code, e.g.
https://unix.stackexchange.com/quest...rogram-to-file). However most of the underlying speech synthesisers can emit to a file easily: e.g. for Festival it's a matter of "festival_client --ttw --output foo.wav", and for espeak and espeak-ng you just need to pass "-w foo.wav".