Replies: 14 comments 2 replies
-
See the FAQ: https://github.com/johnfactotum/foliate/wiki#how-to-use-text-to-speech |
Beta Was this translation helpful? Give feedback.
-
(use man espeak-ng or man festival to see all the options) |
Beta Was this translation helpful? Give feedback.
-
You can run
I think Glate is a GUI program. If you'd like to use Google's TTS with Foliate, I'd recommend using gTTS. Once gTTS is installed, save the following script (as described in the FAQ) to any location, say #!/bin/bash
gtts-cli -l $FOLIATE_TTS_LANG_LOWER --file /dev/stdin | play -t mp3 - &
trap 'kill $!; exit 0' INT
wait Then, in Foliate, set |
Beta Was this translation helpful? Give feedback.
-
In Ubuntu, in addition to
|
Beta Was this translation helpful? Give feedback.
-
Now I am almost there. I installed gtts (since there was some problem with my pip command I solve it with this.) Then install that libsox as @apandada1 said. Now, where and how I will "save" that script? Did you mean in .sh file on text editor? Sorry if I am silly. :) |
Beta Was this translation helpful? Give feedback.
-
Yeah, pasting it into a text editor and saving the file should work. |
Beta Was this translation helpful? Give feedback.
-
I did everything you've said and preferences look like that now: |
Beta Was this translation helpful? Give feedback.
-
ops sorry user shouldn't be folder name but mine :) |
Beta Was this translation helpful? Give feedback.
-
Try marking the script as executable.
The script works for me in KDE Neon 20.04. It is hard to debug why it is not working for you. First check if gtts works in terminal.
If not, does it produce any error? |
Beta Was this translation helpful? Give feedback.
-
@apandada1 yes it says hello with that command. |
Beta Was this translation helpful? Give feedback.
-
Run foliate from the Terminal, and check the output when you run a text to speech in it. |
Beta Was this translation helpful? Give feedback.
-
sox not good worked for me and not play first line.
mpv:
|
Beta Was this translation helpful? Give feedback.
-
In my case (probably similar to @ebulutt's problem of hearing no sound) I had to change the way I launch Foliate. If you're using .desktop application shortcuts, you may need to change the Exec value to make that wrapper tts script Foliate calls work right.
I figured this thanks to @apandada1's suggestion to look at the verbose output from the terminal. |
Beta Was this translation helpful? Give feedback.
-
I installed Pied (https://github.com/Elleo/pied) which allowed me to easily preview, download, and select new voices for speech-dispatcher. Foliate then used this for TTS. Works great. |
Beta Was this translation helpful? Give feedback.
-
Question:
I am not a fan of reading books from a computer screen.
I install Foliate to listen to my epub books while I am working on the PC. It uses festival tts by default.
I have Glate on Ubuntu 20.04. And they say that Glate has Google TTS included. Can I and how can I use Google TTS on Foliate instead of festival tts?
Thank you in advance!
Version:
Beta Was this translation helpful? Give feedback.
All reactions