-
-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text to Speech language #134
Comments
You could switch the voice manually with |
It should be possible to parse the output of |
Can you add a |
@lelinhtinh The easiest way to use #!/bin/bash
gtts-cli -l fr --file /dev/stdin | play -t mp3 - &
trap 'kill $!; exit 0' INT
wait And set this script as the TTS command. |
Hi I'm having some trouble getting a script to call a custom voice to work. I initially tried what you posted above. This works fine when invoked from the command line with |
@RichardJActon Which TTS program are you using? Foliate turns the page after the command returns, and then gives it the text of the next page, so it's important that it only returns after it has finished reading. |
I was looking exactly for this, in my case I prefer using |
On master, after a83696f, the environment variables #!/bin/bash
gtts-cli -l $FOLIATE_TTS_LANG_LOWER --file /dev/stdin | play -t mp3 - &
trap 'kill $!; exit 0' INT
wait For books that specify more precise language codes -- for example, the books from Standard Ebooks -- it will even read British books with the British voice, and Australian books with the Australian voice, and so on. It's quite interesting. |
I had to modify the script slightly to make gTTs work in Foliate installed in an Android phone. Somehow, Also, the output of I have written all the details here https://askubuntu.com/a/1336107/124466 . |
Hi have the same problem that @RichardJActon. I'm using the gtts program. When I invoked I'm using Foliate on Debian 10 (installed with the deb file) |
@jsuarez314 Can you post the content of the script? And error messages, if any? Also it might be better to open a separate issue, as this issue is only about TTS language. @apandada1 I haven't tried it recently, but I can say that it did work before. I think it might be related pndurette/gTTS#245. Maybe one can still get region tags to work with |
I found a partial solution, when I launch foliate from Desktop the gtts script does not work, but when I launch foliate from the terminal the gtts script works fine. |
Can you add the language argument to get a better TTS?
You could use the language of the eBook, if available in the eBook's metadata, or, if not available, a sort of (but I don't know how) language discovery feature.
Thanks and congratulations for the project.
The text was updated successfully, but these errors were encountered: