-
Notifications
You must be signed in to change notification settings - Fork 406
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
Tts should be installed, why not tip? #28
Comments
As discussed here, on some devices the TTS doesn't work (even Google's one), I don't know why but when I have time I will install on my phone some of the custom ROMs that have this issue to investigate (or I will add an integrated TTS to RTranslator), for now, the only thing you can do is clicking on continue and use RTranslator without TTS. |
My Xiaomi 10 also encountered this error before. After installing Google TTS, it still didn't work. Then, after switching back to the system's built-in TTS, it returned to work ok. |
For now the only TTS supported is the Google one (there's actually a check in the code to make sure you're using Google TTS, it doesn't even matter what TTS you select, the Google TTS will be used if you have installed), so probably the TTS wasn't working at the beginning because a restart of RTranslator was needed. |
@niedev
I download the source code and add these code on AndroidManifest.xml, build apk and install on my phone, my phone can use tts normal (Of course, we should install Google TTS "Speech Recognition & Synthesis" on GooglePlay first). |
Thank you very much @starlightjy! The TTS code was 4 years old and I didn't know about this new declaration, also on my phone with Android 14 it worked, but probably the need for this declaration depends on the specific ROM, so it would explain why some had problems and others didn't. If you want to appear among the contributors of RTranslator, send me a simple pull request with this change, if you don't have the desire/time I can insert it myself and cite you in the new release, let me know. |
@niedev I have made a simple pull request. Thanks for your invite! |
There is a new release that should fix the TTS issues! 😁 Let me know if it works correctly. |
how to do this?
Does it still appear not to be working properly? |
@purezhang, if you go in the settings of RTranslator -> Text to speech, the Google TTS engine is the one selected? |
Screenrecorder-20240703-231753.mp4 |
@purezhang you should click directly on "preferred engine" to select the TTS engine, not in the preferred engine settings icon, nor below (where you only select the TTS language), let me know. |
@purezhang 可以先看看小米手机的系统TTS设置,TTS引擎是否选择正确了.把引擎列表和语音都切换试试看(切换后注意重启应用). |
Tts should be installed, why not tip?
The text was updated successfully, but these errors were encountered: