Thread: Accessories Text to speech
View Single Post
Old 05-20-2022, 08:43 AM   #6
NullNix
Guru
NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.
 
Posts: 929
Karma: 15576314
Join Date: Jan 2013
Location: Ely, Cambridgeshire, UK
Device: Kindle Oasis 3, Kindle Oasis 1
Quote:
Originally Posted by Quoth View Post
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".
NullNix is offline   Reply With Quote